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() method does not allow mix.options for CSS files #735
Comments
Hi. How does one set cleanCss options in webpack.mix.js ? So far, with laravel-mix@0.11.4 (latest) this doesn't seem to work (comments are not removed) :
Although, running cssclean cli, Thanks in advance |
Hi, here everything is working fine.
Are you running npm with production environment? The cleanCss options are only used on the minify method. |
Hi. Yes, running npm with production environment. .
Cheers |
@rsdev000 Yeah, I am having the same issue as you #760 |
I cannot reproduce the problem you are reporting. CSS file used for testing
webpack.mix.js
After running: The output CSS is:
Laravel-mix version: 0.11.4 |
You have the expected result. |
Description:
.minify()
method does not allow to pass mix.options for CSS files.In some scenarios I just want cleanCss to inline the CSS and to not rebase URLs. Here is how we can pass additional options:
The text was updated successfully, but these errors were encountered: