40 lines
883 B
JavaScript
40 lines
883 B
JavaScript
|
'use strict'
|
||
|
|
||
|
const webpack = require('webpack')
|
||
|
const merge = require('webpack-merge')
|
||
|
const baseConfig = require('./webpack.config.base')
|
||
|
const MiniCssExtractPlugin = require("mini-css-extract-plugin");
|
||
|
|
||
|
module.exports = merge(baseConfig, {
|
||
|
mode: 'development',
|
||
|
|
||
|
module: {
|
||
|
rules: [
|
||
|
{
|
||
|
test: /\.css$/,
|
||
|
use: [
|
||
|
process.env.NODE_ENV !== 'production'
|
||
|
? 'vue-style-loader'
|
||
|
: MiniCssExtractPlugin.loader,
|
||
|
// 'vue-style-loader',
|
||
|
'css-loader'
|
||
|
]
|
||
|
}, {
|
||
|
test: /\.scss$/,
|
||
|
use: [
|
||
|
process.env.NODE_ENV !== 'production'
|
||
|
? 'vue-style-loader'
|
||
|
: MiniCssExtractPlugin.loader,
|
||
|
// 'vue-style-loader',
|
||
|
'css-loader',
|
||
|
'sass-loader'
|
||
|
]
|
||
|
}
|
||
|
]
|
||
|
},
|
||
|
|
||
|
plugins: [
|
||
|
// new webpack.HotModuleReplacementPlugin()
|
||
|
]
|
||
|
})
|