Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to get bundle output path and file name in custom plugin? #255

Open
maxmilton opened this issue Dec 14, 2017 · 0 comments
Open

How to get bundle output path and file name in custom plugin? #255

maxmilton opened this issue Dec 14, 2017 · 0 comments

Comments

@maxmilton
Copy link

maxmilton commented Dec 14, 2017

I've been working on a plugin for lasso to process CSS via PostCSS (and any arbitarary PostCSS plugins) — https://github.com/WeAreGenki/lasso-postcss. No nice readme yet but I'll work on that soon 💦

The basic functionality is working nicely however I'd like to implement source map generation. I saw over in #122 that source maps arn't even a thing for JS... wow. However, I'd still like to hack something together for my plugin. Source maps are simply too powerful a feature to not use!

Inside the plugin export 'class' we have the read() method, which as its first argument get passed the lassoContext. This has a bunch of nice info but nothing about the output destination.

Is there some way to get the bundle's output path and file name (including the fingerprint etc.)? That's all I need to be able to write the source maps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant