https://github.com/fabianschmick/webpack-encore-example
Example skeleton for development with webpack encore (standalone)
https://github.com/fabianschmick/webpack-encore-example
skeleton webpack
Last synced: about 2 months ago
JSON representation
Example skeleton for development with webpack encore (standalone)
- Host: GitHub
- URL: https://github.com/fabianschmick/webpack-encore-example
- Owner: FabianSchmick
- Created: 2020-09-08T10:22:22.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-09-08T13:40:37.000Z (almost 6 years ago)
- Last Synced: 2025-07-04T20:52:03.540Z (about 1 year ago)
- Topics: skeleton, webpack
- Language: JavaScript
- Homepage:
- Size: 137 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Webpack encore example
===========
This example is a skeleton for projects which use webpack encore as a standalone
The example provides you following functionality:
- Common npm packages ([jQuery](https://www.npmjs.com/package/jquery), [Bootstrap](https://www.npmjs.com/package/bootstrap))
- Sass compiler
- Uglify css and js
- Gzip compression with [compression-webpack-plugin](https://www.npmjs.com/package/compression-webpack-plugin)
- Static asset revisioning by appending content hash to filenames
- Sourcemaps
- PWA Support with [Workbox](https://www.npmjs.com/package/workbox-webpack-plugin)
Read more at the offical [docs](https://symfony.com/doc/current/frontend.html)
## Installation
Clone the project
```
git clone https://github.com/FabianSchmick/webpack-encore-example.git
```
## Usage
Configure your npm packages and webpack-config to your preferences
### While you develop
Use the watch command ``npm run watch`` to compile your assets while developing.
### In production
Run ``npm run build`` to minify and gzip your assets