The file /home/project/webpack.config.js has been updated. Made 1 replacement.

Here's the result of running `cat -n` on a snippet of the edited file:
 131→    },
 132→    resolve: {
 133→      extensions: ['.mjs', '.ts', '.tsx', '.js', '.jsx']
 134→    },
 135→    devServer: {
 136→      // 约束 A：沙箱只开放一个代理端口，所有 builder（webpack/vite/electron）统一 3015
 137→      port: 3015,
 138→      host: '0.0.0.0',
 139→      allowedHosts: 'all',
 140→      hot: true,
 141→      static: {
 142→        directory: path.join(__dirname, 'public'),
 143→        publicPath: '/',
 144→      },
 145→      historyApiFallback: {
 146→        index: '/index.html',
 147→        rewrites: [
 148→          { from: /^\/_p\/\d+\//, to: '/index.html' }
 149→        ]
 150→      },
 151→      devMiddleware: {
 152→        writeToDisk: true,
 153→      },
 154→    },
 155→    plugins: [
 156→      new HtmlWebpackPlugin({
 157→        template: './index.html',
 158→        inject: 'body',
 159→        minify: !isDev ? {