Skip to content

Commit 1991fad

Browse files
author
zebrains
committed
fix crash app
1 parent 7f40639 commit 1991fad

File tree

1 file changed

+23
-23
lines changed

1 file changed

+23
-23
lines changed

frontend/vue.config.js

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -2,27 +2,27 @@ const path = require('path')
22
const name = 'WGRestApi'
33

44
module.exports = {
5-
publicPath: process.env.PUBLIC_PATH || "",
6-
lintOnSave: process.env.NODE_ENV === 'development',
7-
pwa: {
8-
name: name
9-
},
10-
pluginOptions: {
11-
'style-resources-loader': {
12-
preProcessor: 'scss',
13-
patterns: [
14-
path.resolve(__dirname, 'src/styles/_variables.scss'),
15-
path.resolve(__dirname, 'src/styles/_mixins.scss')
16-
]
17-
}
18-
},
19-
chainWebpack(config) {
20-
// provide the app's title in html-webpack-plugin's options list so that
21-
// it can be accessed in index.html to inject the correct title.
22-
// https://cli.vuejs.org/guide/webpack.html#modifying-options-of-a-plugin
23-
config.plugin('html').tap(args => {
24-
args[0].title = name
25-
return args
26-
})
5+
publicPath: process.env.PUBLIC_PATH || '/',
6+
lintOnSave: process.env.NODE_ENV === 'development',
7+
pwa: {
8+
name: name
9+
},
10+
pluginOptions: {
11+
'style-resources-loader': {
12+
preProcessor: 'scss',
13+
patterns: [
14+
path.resolve(__dirname, 'src/styles/_variables.scss'),
15+
path.resolve(__dirname, 'src/styles/_mixins.scss')
16+
]
2717
}
28-
}
18+
},
19+
chainWebpack(config) {
20+
// provide the app's title in html-webpack-plugin's options list so that
21+
// it can be accessed in index.html to inject the correct title.
22+
// https://cli.vuejs.org/guide/webpack.html#modifying-options-of-a-plugin
23+
config.plugin('html').tap(args => {
24+
args[0].title = name
25+
return args
26+
})
27+
}
28+
}

0 commit comments

Comments
 (0)