Skip to content

Commit

Permalink
Allow disabling minification in Vite config (#950)
Browse files Browse the repository at this point in the history
  • Loading branch information
frandiox authored Mar 18, 2022
1 parent 53134d0 commit d19fc36
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/calm-starfishes-retire.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@shopify/hydrogen': patch
---

Allow disabling minification in vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export default () => {
},

build: {
minify: 'esbuild',
minify: config.build?.minify ?? 'esbuild',
sourcemap: true,
/**
* By default, SSR dedupe logic gets bundled which runs `require('module')`.
Expand Down

0 comments on commit d19fc36

Please sign in to comment.