 我暂时的做法是 添加postcss-loader, 并在根目录创建postcss.config.js ```javascript module.exports = { plugins: [ require('autoprefixer')({ browsers: ['last 5 versions', 'Android >= 2.0'] }) ] } ```
Activity
cccRaim commentedon Mar 12, 2017
以前是数组然后map每个loader的,如['style', 'css'],可是不知道哪个版本开始就只能一个字符串了。
cycold commentedon Mar 17, 2017
我也是碰到了这个问题 在单独的.scss文件中 autoprefix没有起作用
anchengjian commentedon Mar 17, 2017
我的方法是在 app.vue 中引入公共 css
shalldie commentedon Apr 25, 2017
你太棒了,,,总算让我找到个可以解决的方式
yoyo837 commentedon May 31, 2017
@zWingz 你添加上去后,没有收到PostCSS Loader的警告吗?
Previous source map found, but options.sourceMap isn't set. In this case the loader will discard the source map enterily for performance reasons.
BelinChung commentedon Jun 1, 2017
@yoyo837
yoyo837 commentedon Jun 1, 2017
@BelinChung
The same warning...
look at this
commit:
webpack-contrib/postcss-loader@159b66a
issues:
webpack-contrib/postcss-loader#248
I switch to a low version postcss-loader@1.3.3
SallyOne commentedon Jun 16, 2017
上述两个问题都碰到了
flyher commentedon Jun 20, 2017
@yoyo837
Thank you.
I change the version to postcss-loader@1.3.3, the warning disappeared.