Skip to content

Commit

Permalink
fix: ssr assets output's file name (#955)
Browse files Browse the repository at this point in the history
  • Loading branch information
youngboy authored Aug 10, 2022
1 parent 33eac19 commit af65c7a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/qwik/src/optimizer/src/plugins/rollup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,11 @@ export function normalizeRollupOutputOptions(
if (opts.target === 'ssr') {
// ssr output
outputOpts.inlineDynamicImports = true;
if (opts.buildMode === 'production') {
if (!outputOpts.assetFileNames) {
outputOpts.assetFileNames = 'build/q-[hash].[ext]';
}
}
} else if (opts.target === 'client') {
// client output

Expand Down

0 comments on commit af65c7a

Please sign in to comment.