change config

This commit is contained in:
Sasha 2025-06-02 12:31:15 +02:00
parent 8415da0452
commit ed223d3633
No known key found for this signature in database

View File

@ -1,3 +1,4 @@
const CopyWebpackPlugin = require("copy-webpack-plugin");
const path = require("path");
module.exports = {
@ -5,7 +6,6 @@ module.exports = {
output: {
path: path.resolve(__dirname, "build"),
filename: "index.js",
publicPath: process.env.NODE_ENV === 'production' ? '/dogfooding/' : '/'
},
experiments: {
asyncWebAssembly: true,
@ -37,9 +37,5 @@ module.exports = {
{ from: "favicon.png", to: "favicon.png" },
],
}),
new HtmlWebpackPlugin({
template: 'index.html',
base: process.env.NODE_ENV === 'production' ? '/dogfooding/' : '/',
})
],
};