This project contains preconfigured Webpack 4 to work with the following tasks:
- Compile
SCSStoCSS - Optimize images (
*.png,*.jpeg,*.gif) - Convert
SVGinto inline'data:image'format - Fonts loader
- Automatic copy
staticdirectory to thedistdirectory - Production optimization (styles, JavaScript, images)
- Build source maps
- Bootstrap 4 (SCSS, JS)
- jQuery
- Popper
- Google Material Icons
- Execute a command from the root directory
npm install
- Use '
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
devbundle:
npm run build
- Good luck!
- src: Project sources root
- img: Images and icons used in your styles
- js: JavaScript code-base for your application
- scss: Styles sources (may contain structure what you like)
- static: Images and media-files which uses statically (will be copied to the
distdirectory), ex: uses in the HTML
- Build sources -
npm run build - Start file watcher for recompiling -
npm run watch - Start webpack dev server -
npm run start - Build sources for production (with optimization) -
npm run production - Clean '
dist' folder -npm run clear