From 37fe2a29ce8a27aa7ec3c33cad929edf6daa1937 Mon Sep 17 00:00:00 2001 From: divyakarippath Date: Tue, 6 Oct 2020 11:57:10 -0700 Subject: [PATCH] feat: add contenthash to bundle names (#1745) --- packages/xarc-webpack/src/partials/output.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/packages/xarc-webpack/src/partials/output.ts b/packages/xarc-webpack/src/partials/output.ts index cbcd6b175..faa92a2bf 100644 --- a/packages/xarc-webpack/src/partials/output.ts +++ b/packages/xarc-webpack/src/partials/output.ts @@ -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;