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 8f1c98b commit 92321ce
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: 'ccdi-cbio-frontend',
},

optimization: {
Expand Down Expand Up @@ -172,7 +172,7 @@ var config = {
}),
new CopyWebpackPlugin({
patterns: [
{ from: './common-dist', to: 'ccdi-cbio-frontend/reactapp' },
{ from: './common-dist', to: 'reactapp' },
{ from: './src/rootImages', to: 'images' },
{ from: './src/common', to: 'common' },
{
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 = 'ccdi-cbio-frontend';

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

0 comments on commit 92321ce

Please sign in to comment.