Skip to content

Commit

Permalink
Update webpack config
Browse files Browse the repository at this point in the history
  • Loading branch information
johnyesit committed Feb 14, 2025
1 parent 6df5124 commit 920d150
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ var config = {
chunkFilename: 'reactapp/[name].[chunkhash].chunk.js',
// cssFilename: 'reactapp/app.css',
// hash: false,
publicPath: '/',
publicPath: 'auto',
},

optimization: {
Expand Down Expand Up @@ -382,7 +382,7 @@ var config = {
},
devServer: {
static: {
directory: path.resolve(__dirname, 'ccdi-cbio-frontend/dist'),
directory: path.resolve(__dirname, 'dist'),
},
hot: true,
historyApiFallback: true,
Expand Down Expand Up @@ -517,7 +517,7 @@ if (isDev || isTest) {
// from dev server
config.output.publicPath = `//localhost:${devPort}/`;
} else {
config.output.publicPath = '/';
config.output.publicPath = 'auto';

// css modules for any scss matching test
config.module.rules.push({
Expand Down

0 comments on commit 920d150

Please sign in to comment.