25 lines
888 B
Plaintext
25 lines
888 B
Plaintext
|
|
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→ historyApiFallback: {
|
|||
|
|
142→ index: '/index.html',
|
|||
|
|
143→ rewrites: [
|
|||
|
|
144→ { from: /^\/_p\/\d+\//, to: '/index.html' }
|
|||
|
|
145→ ]
|
|||
|
|
146→ }
|
|||
|
|
147→ },
|
|||
|
|
148→ plugins: [
|
|||
|
|
149→ new HtmlWebpackPlugin({
|
|||
|
|
150→ template: './index.html',
|
|||
|
|
151→ inject: 'body',
|
|||
|
|
152→ minify: !isDev ? {
|