Skip to content
This repository was archived by the owner on Dec 16, 2025. It is now read-only.

Commit acb8a36

Browse files
committed
Configured Vite config template not to minify identifiers.
1 parent d2b6480 commit acb8a36

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

theme-template/vite.config.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ export default defineConfig(
99
return {
1010
// Increase assetsInlineLimit (in bytes) to allow for larger assets to be inlined
1111
// If they are larger they get put in /dist with a relative path which doesn't work in the iframe block preview.
12+
esbuild: {
13+
minifyIdentifiers: false
14+
},
1215
assetsInlineLimit: 12000,
1316
base: '/wp-content/themes/:THEME_NAME/dist',
1417
build: {
@@ -21,7 +24,8 @@ export default defineConfig(
2124
admin: resolve(__dirname, 'vite-entry-points/admin.js'),
2225
}
2326
},
24-
outDir: 'dist'
27+
outDir: 'dist',
28+
minify: 'esbuild'
2529
},
2630
server: {
2731
// respond to all network requests (same as '0.0.0.0')

0 commit comments

Comments
 (0)