https://github.com/manchenkoff/webpack-bootstrap
This project contains preconfigured Webpack 5 to work with the following tasks:
- Compile
SCSS
toCSS
- Create SVG Sprite (js)
- Production optimization (styles, JavaScript)
- Build source maps
This build need copy to public/typo3conf/ext/theme/Resources/Public/assets
and work as normal from this directory
Backend will be include assets from this folder
- Bootstrap 4 (SCSS, JS)
- jQuery
- Popper
- img.lazyload
- lightbox @todo
- aos.next (css3 animation)
- video.js
- fontAwesome
- Execute a command from the root directory
npm install
- Use '
html/index.html
' as home page - Write Your own JavaScript in the file:
src/js/app.js
- Also Your styles may be placed in the SCSS file:
src/scss/app.scss
- Then run the following command to build
dev
bundle:
npm run build
- src: Project sources root
- js: JavaScript code-base for your application
- scss: Styles sources (may contain structure what you like)
- svg: Drop svg icon here to get in svg sprite
<svg><use xlink:href="#icon-%filename%"></use></svg>
- static: Images and media-files which uses statically (will be copied to the
dist
directory), ex: uses in the HTML
npm install
npm run build
npm run start
- Build sources -
npm run build
- Create an html sprite for SVG -
npm run sprite
- Start file watcher for recompiling -
npm run watch
- Start grunt dev server -
npm run server
- Build sources for production (with optimization) -
npm run build
- @todo Clean '
dist
' folder -npm run clear
grunt/*
- main configs
- LazySizes - [https://github.com/aFarkas/lazysizes]
- animate.style + AOS [https://michalsnik.github.io/aos/,https://animate.style/]
For customization please use src/sass/_components
and src/js/services