Docker

Change-Id: I2aefd96a43bcf3a3c41c079ecfc04a3fee48bed6
diff --git a/scripts/.env b/scripts/.env
new file mode 100644
index 0000000..083c815
--- /dev/null
+++ b/scripts/.env
@@ -0,0 +1 @@
+NODE_ENV=development
\ No newline at end of file
diff --git a/scripts/webpack.base.js b/scripts/webpack.base.js
index ff3ca32..eb4f06e 100644
--- a/scripts/webpack.base.js
+++ b/scripts/webpack.base.js
@@ -15,6 +15,8 @@
   output: {
     path: path.resolve(__dirname, '../dist'), // 打包后的代码放在dist目录下
     filename: '[name].[contenthash:8].js', // 打包的文件名
+
+    publicPath: '/',
   },
   resolve: {
     alias: {
@@ -143,9 +145,18 @@
     new CircularDependencyPlugin({
       exclude: /node_modules/,
       include: /src/,
-      failOnError: true,
+       failOnError: true,
       allowAsyncCycles: false,
       cwd: process.cwd(),
+    }),
+    new webpack.DefinePlugin({
+      'process.env': JSON.stringify({
+        NODE_ENV: process.env.NODE_ENV || 'production',
+        // 这里可以添加其他你需要的环境变量
+      }),
+      // 确保基础变量存在
+      'process.platform': JSON.stringify(platform()),
+      'process.browser': JSON.stringify(true)
     })
   ]
 }
\ No newline at end of file