Skip to content

Commit

Permalink
fix(build): fix-public-path-issue
Browse files Browse the repository at this point in the history
  • Loading branch information
ShreyasSharma28 committed Oct 23, 2024
1 parent 56a4aa4 commit a405787
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion scripts/webpack/webpack-calling.prod.babel.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ if (fs.existsSync('./src/index.html')) {
);
}

const publicPath = process.env.BUILD_PUBLIC_PATH;
const publicPath = process.env.BUILD_PUBLIC_PATH || '/';

// env config object from command line: https://webpack.js.org/guides/environment-variables/
module.exports = (env) => webpackBaseConfig({
Expand Down
2 changes: 1 addition & 1 deletion scripts/webpack/webpack.prod.babel.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ if (fs.existsSync('./src/index.html')) {
);
}

const publicPath = process.env.BUILD_PUBLIC_PATH;
const publicPath = process.env.BUILD_PUBLIC_PATH || '/';

// env config object from command line: https://webpack.js.org/guides/environment-variables/
module.exports = (env) => webpackBaseConfig({
Expand Down

0 comments on commit a405787

Please sign in to comment.