[build] upgrade vue-loader@15 (#937)

This commit is contained in:
neverland
2018-04-25 17:58:05 +08:00
committed by GitHub
parent 7bdce04268
commit e42a048e0d
7 changed files with 122 additions and 158 deletions
-2
View File
@@ -1,5 +1,4 @@
const path = require('path');
const webpack = require('webpack');
const config = require('./webpack.config.dev.js');
const isMinify = process.argv.indexOf('-p') !== -1;
@@ -24,7 +23,6 @@ module.exports = Object.assign({}, config, {
amd: 'vue'
}
},
plugins: [],
performance: false,
optimization: {
minimize: isMinify
+6 -3
View File
@@ -1,9 +1,9 @@
const path = require('path');
const webpack = require('webpack');
const HtmlWebpackPlugin = require('html-webpack-plugin');
const MiniCssExtractPlugin = require('mini-css-extract-plugin')
const ProgressBarPlugin = require('progress-bar-webpack-plugin');
const isProduction = process.env.NODE_ENV === 'production';
const { VueLoaderPlugin } = require('vue-loader')
module.exports = {
mode: 'development',
@@ -41,7 +41,9 @@ module.exports = {
{
loader: 'vue-loader',
options: {
preserveWhitespace: false
compilerOptions: {
preserveWhitespace: false
}
}
}
]
@@ -52,7 +54,7 @@ module.exports = {
use: 'babel-loader'
},
{
test: /\.css$/,
test: /\.(css|postcss)$/,
use: [
MiniCssExtractPlugin.loader,
'css-loader',
@@ -73,6 +75,7 @@ module.exports = {
]
},
plugins: [
new VueLoaderPlugin(),
new ProgressBarPlugin(),
new HtmlWebpackPlugin({
chunks: ['vendor', 'vant-docs'],
-1
View File
@@ -1,4 +1,3 @@
const webpack = require('webpack');
const merge = require('webpack-merge');
const path = require('path');
const devConfig = require('./webpack.config.dev.js');