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 add postcss plugins #14
Comments
Can you post your postcss config? I may add |
Just added postcss-cssnext to vue-loader.config.js inside my nuxt package for giggles. That made the build complain about double autoprefixer though (think it's included in cssnext). Think build.postcss in nuxt.config.js would be sweet 👍
|
This option has been added in v0.6.7 Thank you @PatrikLythell for using Nuxt.js 😄 |
Just for the record, since I spent few hours looking for that, here is the module.exports = {
build: {
postcss: [
require('postcss-nested')(),
require('postcss-responsive-type')(),
require('postcss-hexrgba')(),
]
}
} |
That's cool, but seems that any scss file included by CSS array in the nuxt.config.js files is not prefixed.
My workaround was import the scss file in the layout vue file, like so <style lang="scss"> @import "~assets/scss/app.scss"; </style>Any other better approach? |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
I ended up adding them to the postcss array in vue-loader.config.js because I couldn't get it to work.
Is there a better way or should we add a hook to the postcss array?
The text was updated successfully, but these errors were encountered: