2019-04-09 00:21:00 +02:00
|
|
|
'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'
|
|
|
|
]
|
2019-06-17 14:07:27 +02:00
|
|
|
}, {
|
|
|
|
test: /\.(png|jpg|gif)$/,
|
|
|
|
use: [
|
|
|
|
{
|
|
|
|
loader: 'url-loader',
|
|
|
|
options: {
|
|
|
|
limit: 5000
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
2019-04-09 00:21:00 +02:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
|
|
|
|
plugins: [
|
|
|
|
// new webpack.HotModuleReplacementPlugin()
|
|
|
|
]
|
|
|
|
})
|