Skip to content
This repository was archived by the owner on Oct 4, 2023. It is now read-only.

Commit df8783b

Browse files
committed
add templaing for eslint on web config
1 parent 9107e8f commit df8783b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

template/.electron-vue/webpack.web.config.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ let webConfig = {
1717
},
1818
module: {
1919
rules: [
20+
{{#if eslint}}
2021
{
2122
test: /\.(js|vue)$/,
2223
enforce: 'pre',
@@ -28,6 +29,7 @@ let webConfig = {
2829
}
2930
}
3031
},
32+
{{/eslint}}
3133
{
3234
test: /\.css$/,
3335
use: ExtractTextPlugin.extract({

0 commit comments

Comments
 (0)