-
Notifications
You must be signed in to change notification settings - Fork 64
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 styles #2387
Minify styles #2387
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is working as described, but while testing I noticed a warning in the SASS CLI output:
Deprecation Warning: The legacy JS API is deprecated and will be removed in Dart Sass 2.0.0.
More info: https://sass-lang.com/d/legacy-js-api
Looking at the migration documentation and the replacement compile
function, it seems that Dart SASS now supports compressed/minified output natively. Would it be preferable to migrate to the new API and avoid having to add the cssnano
dependency?
@dkoo – I've tried upgrading to |
Ok, we can re-cross that bridge when |
🎉 This PR is included in version 2.1.1-alpha.1 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
🎉 This PR is included in version 2.1.1 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
All Submissions:
Changes proposed in this Pull Request:
Adds CSS minification to the created stylesheets.
Also fixes a warning triggered by Sass about rule nesting. Nested rules should be placed after other rules.
How to test the changes in this Pull Request:
npm run build
and observe the<theme-slug>/style.css
files are minifiedOther information: