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.js9
1 files changed, 8 insertions, 1 deletions
diff --git a/vnext/webpack.config.js b/vnext/webpack.config.js
index 1218542f..e0c6855e 100644
--- a/vnext/webpack.config.js
+++ b/vnext/webpack.config.js
@@ -39,7 +39,7 @@ module.exports = (env, argv) => {
{
test: /\.css$/,
use: [
- dev? 'style-loader' : MiniCssExtractPlugin.loader,
+ dev ? 'style-loader' : MiniCssExtractPlugin.loader,
{
loader: 'css-loader'
},
@@ -65,6 +65,13 @@ module.exports = (env, argv) => {
{
test: /\.js$/,
exclude: /node_modules/,
+ loader: 'eslint-loader',
+ enforce: 'pre',
+ options: { failOnWarning: false, failOnError: true, fix: true },
+ },
+ {
+ test: /\.js$/,
+ exclude: /node_modules/,
loader: 'babel-loader'
},
{