dai-vue-temp-m
更改列表
build/config.js 8(+7 -1)
详细信息
build/config.js 8(+7 -1)
diff --git a/build/config.js b/build/config.js
index ede94b8..c1970bb 100644
--- a/build/config.js
+++ b/build/config.js
@@ -16,7 +16,13 @@ export default {
],
webpack: {
devServer: {
- sockHost: '192.168.88.88'
+ historyApiFallback: true,
+ allowedHosts: 'all',
+ host: '0.0.0.0',
+ // 允许访问静态文件
+ static: {
+ directory: path.join(__dirname, ''),
+ }
}
}
};