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

fix postcss config #890

Merged
merged 5 commits into from
Nov 8, 2017
Merged

Conversation

yibuyisheng
Copy link
Contributor

fix #600

@LinusBorg LinusBorg modified the milestone: 1.1.0 Sep 1, 2017
* Remove unused fs require from webpack.base.conf.js (vuejs-templates#893)

* cleanup some leftover from reverting vuejs-templates#688
// 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]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. 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 })

Copy link
Contributor Author

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.

@LinusBorg LinusBorg changed the base branch from master to develop September 30, 2017 12:09
@LinusBorg LinusBorg modified the milestones: 1.1.0, 1.2.0 Oct 7, 2017
@LinusBorg LinusBorg merged commit 583b6bb into vuejs-templates:develop Nov 8, 2017
@PanJiaChen PanJiaChen mentioned this pull request Nov 10, 2017
frandiox pushed a commit to OnsenUI/vue-cordova-webpack that referenced this pull request Dec 25, 2017
* 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
shenron pushed a commit to shenron/webpack that referenced this pull request Mar 20, 2018
* 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Autoprefixer is only active for .vue files
3 participants