We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 17a0e5c commit ea6f6e9Copy full SHA for ea6f6e9
template/build/webpack.base.conf.js
@@ -8,7 +8,7 @@ function resolve (dir) {
8
return path.join(__dirname, '..', dir)
9
}
10
11
-const lintingRule = {
+const createLintingRule = () => ({
12
test: /\.(js|vue)$/,
13
loader: 'eslint-loader',
14
enforce: 'pre',
@@ -17,7 +17,7 @@ const lintingRule = {
17
formatter: require('eslint-friendly-formatter'),
18
emitWarning: !config.dev.showEslintErrorsInOverlay
19
20
-}
+})
21
22
module.exports = {
23
context: path.resolve(__dirname, '../'),
@@ -43,7 +43,7 @@ module.exports = {
43
module: {
44
rules: [
45
{{#lint}}
46
- ...(config.dev.useEslint ? [lintingRule] : []),
+ ...(config.dev.useEslint ? [createLintingRule()] : []),
47
{{/lint}}
48
{
49
test: /\.vue$/,
0 commit comments