Skip to content

Commit 322e6d8

Browse files
committed
Merged changes from source template
1 parent 7f3ce7e commit 322e6d8

File tree

1 file changed

+9
-10
lines changed

1 file changed

+9
-10
lines changed

template/vue/webpack.config.js

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,6 @@ module.exports = {
1212
publicPath: 'http://localhost:8080/assets/',
1313
filename: '[name].js'
1414
},
15-
devServer: {
16-
historyApiFallback: true,
17-
noInfo: true,
18-
proxy: {
19-
"**": "{{ local-server }}"
20-
}
21-
},
2215
module: {
2316
rules: [
2417
{
@@ -57,7 +50,14 @@ module.exports = {
5750
},
5851
resolve: {
5952
alias: {
60-
'vue$': 'vue/dist/vue.common.js'
53+
'vue$': 'vue/dist/vue.esm.js'
54+
}
55+
},
56+
devServer: {
57+
historyApiFallback: true,
58+
noInfo: true,
59+
proxy: {
60+
"**": "{{ local-server }}"
6161
}
6262
},
6363
performance: {
@@ -68,8 +68,7 @@ module.exports = {
6868

6969
if ( isProduction ) {
7070

71-
module.exports.devtool = '#source-map'
72-
71+
module.exports.devtool = '#source-map';
7372

7473
module.exports.output.publicPath = './wp-content/themes/{{ name }}/assets/';
7574

0 commit comments

Comments
 (0)