aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian <sebasjm@gmail.com>2023-04-04 09:08:16 -0300
committerSebastian <sebasjm@gmail.com>2023-04-04 09:08:16 -0300
commit2ef40efe53f064520db29f07a20302a5b9ebf276 (patch)
tree0310313afd0bf93d5e521f8a73eadfb002b2ee3b
parentf788955d40896fe973501165e03dcb2464c71269 (diff)
revert minified
-rwxr-xr-xpackages/merchant-backend-ui/build.mjs10
1 files changed, 9 insertions, 1 deletions
diff --git a/packages/merchant-backend-ui/build.mjs b/packages/merchant-backend-ui/build.mjs
index 5ca199e2f..fd2a52b9e 100755
--- a/packages/merchant-backend-ui/build.mjs
+++ b/packages/merchant-backend-ui/build.mjs
@@ -119,7 +119,15 @@ export const buildConfig = {
entryPoints: [...entryPoints],
bundle: true,
outdir: "dist/pages",
- minify: true,
+ /*
+ * Doing a minified version will replace templatestring to common strings
+ * This app is building mustache template with placeholders that will be replaced
+ * with string in runtime by the merchant-backend
+ *
+ * To the date, merchant backend is replacing with multiline string so
+ * doing minified version will brake at runtime
+ * */
+ minify: false,
loader: {
".svg": "file",
".png": "dataurl",