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: { 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

View File

@ -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',