webpack: remove eslint, added terser optimization in prod build
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
'use strict'
|
||||
|
||||
const MiniCssExtractPlugin = require("mini-css-extract-plugin");
|
||||
const { VueLoaderPlugin } = require('vue-loader')
|
||||
const ESLintPlugin = require('eslint-webpack-plugin');
|
||||
|
||||
const utils = require('./utils')
|
||||
|
||||
@@ -25,16 +25,16 @@ module.exports = {
|
||||
},
|
||||
module: {
|
||||
rules: [
|
||||
{
|
||||
test: /\.(js|vue)$/,
|
||||
loader: 'eslint-loader',
|
||||
enforce: 'pre',
|
||||
exclude: /node_modules/,
|
||||
options: {
|
||||
emitError: true,
|
||||
emitWarning: true
|
||||
}
|
||||
},
|
||||
// {
|
||||
// test: /\.(js|vue)$/,
|
||||
// loader: 'eslint-loader',
|
||||
// enforce: 'pre',
|
||||
// exclude: /node_modules/,
|
||||
// options: {
|
||||
// emitError: true,
|
||||
// emitWarning: true
|
||||
// }
|
||||
// },
|
||||
{
|
||||
test: /\.vue$/,
|
||||
use: 'vue-loader'
|
||||
@@ -82,5 +82,6 @@ module.exports = {
|
||||
filename: '[name].css'
|
||||
}),
|
||||
new VueLoaderPlugin()
|
||||
// new ESLintPlugin()
|
||||
]
|
||||
}
|
||||
|
Reference in New Issue
Block a user