更新 'webpack.dev.js'

This commit is contained in:
zhouxhere 2022-01-19 08:42:13 +00:00
parent 3a14ff8020
commit f2e5e0913a
1 changed files with 3 additions and 1 deletions

View File

@ -11,7 +11,9 @@ module.exports = merge(common, {
},
plugins: [new CaseSensitivePathsWebpackPlugin()],
devServer: {
static: './public',
static: {
directory: path.join(__dirname, 'public'),
},
hot: true,
historyApiFallback: true,
proxy: {},