Skip to content

Commit

Permalink
feat: add contenthash to bundle names (#1745)
Browse files Browse the repository at this point in the history
  • Loading branch information
divyakarippath authored Oct 6, 2020
1 parent b462308 commit 37fe2a2
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions packages/xarc-webpack/src/partials/output.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,8 @@ module.exports = () => {
const getOutputFilename = () => {
let filename = "[name].bundle.[contenthash].js";

if (AppMode.hasSubApps) {
filename = "[name].bundle.js";
} else if (babel.hasMultiTargets) {
filename = `${babel.target}.[name].bundle.js`;
if (babel.hasMultiTargets) {
filename = `${babel.target}.[name].bundle.[contenthash].js`;
}

return filename;
Expand Down

0 comments on commit 37fe2a2

Please sign in to comment.