replace NoErrorsPlugin && add dev eslint check

This commit is contained in:
Pan 2017-04-29 16:36:14 +08:00
parent 785c3beaf5
commit 3063d9c865
2 changed files with 10 additions and 10 deletions

View file

@ -41,15 +41,15 @@ module.exports = {
},
module: {
rules: [
// {
// test: /\.(js|vue)$/,
// loader: 'eslint-loader',
// enforce: "pre",
// include: [resolve('src'), resolve('test')],
// options: {
// formatter: require('eslint-friendly-formatter')
// }
// },
{
test: /\.(js|vue)$/,
loader: 'eslint-loader',
enforce: "pre",
include: [resolve('src'), resolve('test')],
options: {
formatter: require('eslint-friendly-formatter')
}
},
{ test: /\.vue$/,
loader: 'vue-loader',
options: vueLoaderConfig

View file

@ -33,7 +33,7 @@ module.exports = merge(baseWebpackConfig, {
}),
// https://github.com/glenjamin/webpack-hot-middleware#installation--usage
new webpack.HotModuleReplacementPlugin(),
new webpack.NoErrorsPlugin(),
new webpack.NoEmitOnErrorsPlugin(),
// https://github.com/ampedandwired/html-webpack-plugin
new HtmlWebpackPlugin({
filename: 'index.html',