Symfony5 Webpack Encore Node.js Yarn NPM
Install and use a lib from NPM
- dn yarn add foolib
- assets/app.js
-
import 'foolib/build/foolib.min.js';
- Path is relative to node_modules/
-
- docker-compose exec node yarn encore dev --watch
Performance
https://dev.to/slashgear_/how-to-boost-the-speed-of-your-webpack-build-16h0