-
Notifications
You must be signed in to change notification settings - Fork 4.4k
fix postcss config #890
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
fix postcss config #890
Conversation
* Remove unused fs require from webpack.base.conf.js (vuejs-templates#893) * cleanup some leftover from reverting vuejs-templates#688
template/build/utils.js
Outdated
// generate loader string to be used with extract text plugin | ||
function generateLoaders (loader, loaderOptions) { | ||
var loaders = [cssLoader] | ||
var loaders = options.usePostCSS !== false ? [cssLoader, postcssLoader] : [cssLoader] |
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.
- Where does
option.usePostCSS
come from? It's not to be found in/config/index.js
, not in any of the webpack config files. This should be documented someway.
Is the idea to simply add it to the styleLoader code like this?
// in webpack.base.conf.js:
rules: utils.styleLoaders({ sourceMap: config.dev.cssSourceMap, usePostCSS: true })
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.
Is the idea to simply add it to the styleLoader code like this?
// in webpack.base.conf.js: rules: utils.styleLoaders({ sourceMap: config.dev.cssSourceMap, usePostCSS: true })
Yes, I think the usePostCSS
config should be set in the webpack config file.
3b395e5
to
cdea8fe
Compare
* Update vue-loader link (vuejs-templates#886) * Merge some small fixes (vuejs-templates#900) * Remove unused fs require from webpack.base.conf.js (vuejs-templates#893) * cleanup some leftover from reverting vuejs-templates#688 * fix postcss config * userPostCSS config
* Update vue-loader link (vuejs-templates#886) * Merge some small fixes (vuejs-templates#900) * Remove unused fs require from webpack.base.conf.js (vuejs-templates#893) * cleanup some leftover from reverting vuejs-templates#688 * fix postcss config * userPostCSS config
fix #600