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 18, 2025
1 parent e8d88da commit 44843d6
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,11 +99,10 @@ var config = {
output: {
path: path.resolve(__dirname, 'dist'),
filename: 'reactapp/[name].app.js',
chunkFilename:
'ccdi-cbio-frontend/reactapp/[name].[chunkhash].chunk.js',
chunkFilename: 'reactapp/[name].[chunkhash].chunk.js',
// cssFilename: 'reactapp/app.css',
// hash: false,
publicPath: '/',
publicPath: '/ccdi-cbio-frontend/',
},

optimization: {
Expand Down Expand Up @@ -518,7 +517,7 @@ if (isDev || isTest) {
// from dev server
config.output.publicPath = `//localhost:${devPort}/`;
} else {
config.output.publicPath = '/ccdi-cbio-frontend';
config.output.publicPath = '/ccdi-cbio-frontend/';

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

0 comments on commit 44843d6

Please sign in to comment.