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

Minify the SCSS to CSS and inject it into DOM #508

Closed
rohitp-bsf opened this issue May 20, 2021 · 1 comment
Closed

Minify the SCSS to CSS and inject it into DOM #508

rohitp-bsf opened this issue May 20, 2021 · 1 comment

Comments

@rohitp-bsf
Copy link

Is it recommended to use style-loader in production mode? Also, I have implemented a style-loader in webpack and it works super perfectly but It loading with non minified version. Is there any way to minify the CSS and load it into the DOM?

@alexander-akait
Copy link
Member

alexander-akait commented May 20, 2021

Is it recommended to use style-loader in production mode?

Yes, you can use this loader in production.

Is there any way to minify the CSS and load it into the DOM?

Using postcss (postcss-loader) and cssnano as plugin, we have an issue to improve this webpack-contrib/css-minimizer-webpack-plugin#80

Feel free to feedback

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

2 participants