Skip to content
Discussion options

You must be logged in to vote

Hi @praneetharao0994 👋,

On Arc XP you generally don’t need to plug in your own minifier – PageBuilder Engine already uses Webpack to minify and tree-shake the bundle in non-local environments by default. Locally, this behavior is controlled by the MINIFY env variable:

MINIFY controls if Webpack should minify and tree-shake the final bundle. It defaults to false locally and is always enabled in non-local environments. Arc XP Environment Variables

So if your live site is showing a performance score below 40% (e.g. Lighthouse/PageSpeed), the bottleneck is usually not “missing minification”, but things like:

  • Overall bundle size and heavy libraries
  • Unused JavaScript loaded on pages that do…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by praneetharao0994
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
2 participants