Skip to content
Permalink
Browse files

解决 scss 不加浏览器前缀的问题,将 sass-loader 放在最后

  • Loading branch information
wskwbog committed Sep 18, 2019
1 parent 4cf7fee commit 92f30bca3e64999242ec58f8245bf04d99058d75
Showing with 4 additions and 8 deletions.
  1. +4 −8 webpack.common.js
@@ -24,14 +24,7 @@ module.exports = {
},
}, {
loader: 'css-loader', // translates CSS into CommonJS modules
options: {
sourceMap: true
}
}, {
loader: 'sass-loader', // compiles Sass to CSS
options: {
sourceMap: true
}
options: { sourceMap: true }
}, {
loader: 'postcss-loader', // Run postcss actions
options: {
@@ -42,6 +35,9 @@ module.exports = {
];
}
}
}, {
loader: 'sass-loader', // compiles Sass to CSS
options: { sourceMap: true }
}]
}]
},

0 comments on commit 92f30bc

Please sign in to comment.
You can’t perform that action at this time.