We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 09874c3 commit e938bc2Copy full SHA for e938bc2
src/config/webpack.config.js
@@ -25,11 +25,7 @@ const modules = {
25
test: /\.js$/,
26
loader: 'eslint-loader',
27
enforce: 'pre',
28
- exclude: /node_modules|webpackHotDevClient/,
29
- options: {
30
- cacheDirectory: true,
31
- configFile: ESLINT_PATH
32
- }
+ exclude: /node_modules|webpackHotDevClient/
33
}, {
34
35
exclude: /node_modules/,
@@ -115,6 +111,17 @@ if (isProd) {
115
111
]
116
112
devtool = 'source-map'
117
113
plugins.push(
114
+ new webpack.LoaderOptionsPlugin({
+ test: /\.js$/,
+ options: {
+ eslint: {
118
119
+ cacheDirectory: true,
120
+ configFile: ESLINT_PATH
121
+ }
122
123
124
+ }),
125
new HtmlWebpackPlugin({
126
title: 'Pixore',
127
filename: 'index.html',
0 commit comments