The purpose of a component-specific module is to enhance a specific AEM component, for example by making its HTML interactive in some way. Assuming your JavaScript files follow the module syntax, we differentiate between two types of modules: To take full advantage of Webpack and modern JavaScript features, it’s best practice to organize your JavaScript in modules ( examples ). There are different ways to organize JavaScript files that should be processed by Webpack. Note: If you want your back end developers or DevOps to be able to run Maven without Webpack, you can set up a separate Maven build profile that doesn’t run Webpack. This empowers developers to only run Webpack-specific tasks, for example a task that watches for changes to JavaScript files and then automatically triggers a build.
0 Comments
Leave a Reply. |