This example is a skeleton for projects which use webpack encore as a standalone
The example provides you following functionality:
- Common npm packages (jQuery, Bootstrap)
- Sass compiler
- Uglify css and js
- Gzip compression with compression-webpack-plugin
- Static asset revisioning by appending content hash to filenames
- Sourcemaps
- PWA Support with Workbox
Read more at the offical docs
Clone the project
git clone https://github.com/FabianSchmick/webpack-encore-example.git
Configure your npm packages and webpack-config to your preferences
Use the watch command npm run watch
to compile your assets while developing.
Run npm run build
to minify and gzip your assets