fixed build

This commit is contained in:
paul
2025-04-01 21:15:37 +05:30
parent fff10097fd
commit f1eddf1821

View File

@@ -33,7 +33,7 @@ module.exports = {
output: {
path: path.resolve(__dirname, "dist"),
filename: isProduction ? "js/[name].[contenthash].js" : "js/[name].js",
publicPath: "/",
publicPath: "./",
},
module: {
@@ -86,11 +86,6 @@ module.exports = {
{ from: 'public', to: '', noErrorOnMissing: true, globOptions: { ignore: ['**/index.html'] }}, // Copies everything else from public to dist
],
}),
new webpack.EnvironmentPlugin({
REACT_APP_ANALYTICS_SCRIPT_ID: process.env.REACT_APP_ANALYTICS_SCRIPT_ID || '', // Default empty value
API_URL: 'https://default.api.com'
})
],