Skip to content
This repository was archived by the owner on Sep 24, 2020. It is now read-only.

Commit 81759cf

Browse files
public path for main.js file for relative cases
1 parent 04823c6 commit 81759cf

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

template/config/webpack.config.base.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ let config = {
77
},
88
output: {
99
path: helpers.root('/dist'),
10-
filename: 'js/[name].[hash].js'
10+
filename: 'js/[name].[hash].js',
11+
publicPath: '/'
1112
},
1213
devtool: 'source-map',
1314
resolve: {

0 commit comments

Comments
 (0)