Skip to content

Commit ccedfc2

Browse files
committed
fix: 默认不设置 publicPath
1 parent 47973ce commit ccedfc2

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

src/models/Config.js

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,20 +19,17 @@ class Config {
1919
local: {
2020
path: './prd/',
2121
filename: '[name][ext]',
22-
chunkFilename: '[id].chunk.js',
23-
publicPath: path.join('/', projectDir, 'prd/')
22+
chunkFilename: '[id].chunk.js'
2423
},
2524
dev: {
2625
path: './dev/',
2726
filename: '[name][ext]',
28-
chunkFilename: '[id].chunk.js',
29-
publicPath: path.join('/', projectDir, 'dev/')
27+
chunkFilename: '[id].chunk.js'
3028
},
3129
prd: {
3230
path: './prd/',
3331
filename: '[name].min[ext]',
34-
chunkFilename: '[id].chunk.min.js',
35-
publicPath: path.join('/', projectDir, 'prd/')
32+
chunkFilename: '[id].chunk.min.js'
3633
}
3734
},
3835
module: {

0 commit comments

Comments
 (0)