replace NoErrorsPlugin && add dev eslint check
This commit is contained in:
parent
785c3beaf5
commit
3063d9c865
|
@ -41,15 +41,15 @@ module.exports = {
|
||||||
},
|
},
|
||||||
module: {
|
module: {
|
||||||
rules: [
|
rules: [
|
||||||
// {
|
{
|
||||||
// test: /\.(js|vue)$/,
|
test: /\.(js|vue)$/,
|
||||||
// loader: 'eslint-loader',
|
loader: 'eslint-loader',
|
||||||
// enforce: "pre",
|
enforce: "pre",
|
||||||
// include: [resolve('src'), resolve('test')],
|
include: [resolve('src'), resolve('test')],
|
||||||
// options: {
|
options: {
|
||||||
// formatter: require('eslint-friendly-formatter')
|
formatter: require('eslint-friendly-formatter')
|
||||||
// }
|
}
|
||||||
// },
|
},
|
||||||
{ test: /\.vue$/,
|
{ test: /\.vue$/,
|
||||||
loader: 'vue-loader',
|
loader: 'vue-loader',
|
||||||
options: vueLoaderConfig
|
options: vueLoaderConfig
|
||||||
|
|
|
@ -33,7 +33,7 @@ module.exports = merge(baseWebpackConfig, {
|
||||||
}),
|
}),
|
||||||
// https://github.com/glenjamin/webpack-hot-middleware#installation--usage
|
// https://github.com/glenjamin/webpack-hot-middleware#installation--usage
|
||||||
new webpack.HotModuleReplacementPlugin(),
|
new webpack.HotModuleReplacementPlugin(),
|
||||||
new webpack.NoErrorsPlugin(),
|
new webpack.NoEmitOnErrorsPlugin(),
|
||||||
// https://github.com/ampedandwired/html-webpack-plugin
|
// https://github.com/ampedandwired/html-webpack-plugin
|
||||||
new HtmlWebpackPlugin({
|
new HtmlWebpackPlugin({
|
||||||
filename: 'index.html',
|
filename: 'index.html',
|
||||||
|
|
Loading…
Reference in New Issue