Update webpack config

This commit is contained in:
Pig Fang 2018-07-30 09:45:37 +08:00
parent 7072481f90
commit 1a475b5bc8

View File

@ -41,12 +41,10 @@ module.exports = [{
loader: 'vue-loader' loader: 'vue-loader'
}, },
{ {
test: /\.(css|styl)$/, test: /\.(css|styl(us)?)$/,
exclude: /node_modules/, exclude: /node_modules/,
use: [ use: [
devMode 'vue-style-loader',
? 'vue-style-loader'
: MiniCssExtractPlugin.loader,
{ loader: 'css-loader', options: { importLoaders: 2 } }, { loader: 'css-loader', options: { importLoaders: 2 } },
'postcss-loader', 'postcss-loader',
'stylus-loader' 'stylus-loader'