Skip to content

Commit

Permalink
Another fix attempt.
Browse files Browse the repository at this point in the history
  • Loading branch information
SebastianStehle committed Feb 15, 2024
1 parent f2557e6 commit 8ebb6ec
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions frontend/vite.build.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -37,18 +37,12 @@ async function buildPackages() {
},
output: {
entryFileNames: chunk => {
if (chunk.name === 'index') {
return 'app.js';
} else {
return `${chunk.name}.js`;
}
return `${chunk.name}.js`;
},

assetFileNames: chunk => {
if (chunk.name === 'index.css') {
return 'app.css';
} else if (chunk.name === 'sdk.css') {
return 'notifo-sdk.css';
if (chunk.name === 'app.css' || 'notifo-sdk.css') {
return '[name].[ext]';
} else {
return '[name].[hash].[ext]';
}
Expand Down

0 comments on commit 8ebb6ec

Please sign in to comment.