aboutsummaryrefslogtreecommitdiff
path: root/vnext/webpack.config.js
diff options
context:
space:
mode:
Diffstat (limited to 'vnext/webpack.config.js')
-rw-r--r--vnext/webpack.config.js11
1 files changed, 3 insertions, 8 deletions
diff --git a/vnext/webpack.config.js b/vnext/webpack.config.js
index 0a2ccb1c..1edb22b0 100644
--- a/vnext/webpack.config.js
+++ b/vnext/webpack.config.js
@@ -5,6 +5,7 @@ const MiniCssExtractPlugin = require('mini-css-extract-plugin');
const TerserPlugin = require('terser-webpack-plugin');
const OptimizeCSSAssetsPlugin = require('optimize-css-assets-webpack-plugin');
const ErrorOverlayPlugin = require('error-overlay-webpack-plugin');
+const ESLintPlugin = require('eslint-webpack-plugin');
module.exports = (env, argv) => {
const dev = argv.mode !== 'production';
@@ -67,13 +68,6 @@ module.exports = (env, argv) => {
{
test: /\.js$/,
exclude: /node_modules/,
- loader: 'eslint-loader',
- enforce: 'pre',
- options: { failOnWarning: false, failOnError: true, fix: false },
- },
- {
- test: /\.js$/,
- exclude: /node_modules/,
loader: 'babel-loader'
},
{
@@ -94,7 +88,8 @@ module.exports = (env, argv) => {
template: './src/index.html',
filename: './index.html'
}),
- new ErrorOverlayPlugin()
+ new ErrorOverlayPlugin(),
+ new ESLintPlugin({ failOnWarning: false, failOnError: true, fix: false })
],
devServer: {
bonjour: true,