Frontend build tools for AEM projects.
npm install @netcentric/fe-buildFrontend build tools for AEM projects.





npm i @netcentric/fe-build
`Add the
nc-fe-build task in the scripts section of your package.json file:
`json
"scripts": {
"build": "nc-fe-build"
},
`Create a directory named
src and put some Scss and JS files there named ".source.scss" and ".source.js".Create a file named
.febuild file one level up from where the source code directory is with the following content:
`javascript
module.exports = {}
`Finally, run the build task:
`bash
npm run build
``- Lint source code with ESLint.
- Transpilation with Babel.
- core-js polyfills are automatically added when needed.
- Bundled and optimized with Webpack.
- Analyze bundles with Webpack Bundle Analyzer.
- Lint source code with Stylelint.
- SASS compilation.
- Add vendor prefixes with Autoprefixer.
- Automatically create clientLibrary resources based on the source files.
- Include all generated CSS and JS files in the css.txt and js.txt files.
+ Configuration
+ Recommended NPM Tasks
+ Quick Start
+ Migrating to v4.0.0
+ Contributing