Skip to content

Commit 80a2817

Browse files
committed
refine assets path config
1 parent f1aa01a commit 80a2817

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

config/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ module.exports = {
77
prodEnv: require('./prod.env'),
88
index: path.resolve(__dirname, '../dist/index.html'),
99
assetsRoot: path.resolve(__dirname, '../dist'),
10-
assetsSubDirectory: '',
11-
assetsPublicPath: './', //生产环境assetsPublicPath: '/'
12-
staticPath:'./', //生产环境 staticPath:''
10+
assetsSubDirectory: 'static',
11+
assetsPublicPath: '/',
12+
staticPath:'./',
1313
productionSourceMap: true,
1414
// Gzip off by default as many popular static hosts such as
1515
// Surge or Netlify already gzip all static assets for you.

0 commit comments

Comments
 (0)