Skip to content

Commit 80ed77b

Browse files
committed
fix: build
1 parent ae20c59 commit 80ed77b

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

webpack/dev.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ module.exports = merge(webpackCommon, {
4242
devServer: {
4343
port: env.devServer.port || 3000,
4444
open: ['index.html'],
45+
allowedHosts: 'all',
4546
headers: {
4647
'Access-Control-Allow-Origin': '*',
4748
'Access-Control-Allow-Headers': '*'

webpack/es6.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ module.exports = merge(webpackCommon, {
2121
filename: '[name].js',
2222
path: outputPath,
2323
chunkFilename: '[name].js',
24-
publicPath: '',
24+
publicPath: 'auto',
2525
library: {
2626
type: 'module'
2727
},

0 commit comments

Comments
 (0)