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

Output transforms process fragments instead of bundles #287

Open
Piezoid opened this issue Nov 2, 2018 · 0 comments
Open

Output transforms process fragments instead of bundles #287

Piezoid opened this issue Nov 2, 2018 · 0 comments

Comments

@Piezoid
Copy link
Contributor

Piezoid commented Nov 2, 2018

The readme says:

Registered output transforms are used to process bundles as they are written to disk. As an example, an output transform can be used to minify a JavaScript or CSS bundle.

A breakpoint in Transformer.transform(inStream, lassoContext) shows that it not the case: the transformer is called for each CSS fragment separately.

bundlingEnabled is set to true, and a single CSS file is generated on disk.

I would like to perform whole stylesheet optimizations (as with cssnano-preset-advanced). Is it possible within lasso ?

@Piezoid Piezoid changed the title Output transforms process fragments instead bundles Output transforms process fragments instead of bundles Nov 26, 2018
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