I am trying to exclude the dependencies folder in ui.frontend from being minimized/optimized via Webpack, but I am unable to, I updated this line to this, but with no effect.
Use case, is that whatever added to dependencies should not be minimized as it causes issues with method when used elsewhere.
Does anyone have a solution to exclude a path of JS files from being minimized/optimized/compiled by webpack?
Topics help categorize Community content and increase your ability to discover relevant content.
There are 2 places where the minimization is possible.
For webpack, please check https://webpack.js.org/plugins/terser-webpack-plugin/
I actually tried all that before creating this topic.
Is there any straightforward way to only exclude one folder from being minimized.
BTW, to my understanding AEM Clientlib JS Config file, does not actually do any optimization.
@joe_17382226 Did you find the suggestions from Arun helpful? Please let us know if more information is required. Otherwise, please mark the answer as correct for posterity. If you have found out solution yourself, please share it with the community.