stelara / encore-webpack-standalone
Encore-Webpack standalone integration (without Symfony and Twig)
dev-master
2020-09-30 18:17 UTC
Requires
- php: >=7.3
- vlucas/phpdotenv: ^3.6
Requires (Dev)
- dg/bypass-finals: ^1.1
- phpunit/phpunit: ^8
This package is auto-updated.
Last update: 2025-03-01 00:35:00 UTC
README
Install
- yarn install (install js dependencies)
- composer install (install php dependencies)
- composer dev-compile (compile assets)
- composer serve (open your browser http://localhost:8900 )
- composer test (run unit tests)
$section = 'app' // section defined into webpack.config.js $path = 'static/images/new_section/hallstatt-4579234_640.jpg' $encore = new Process\WebpackEncore(); $encore->linkTags($section); $encore->scriptTags($section); $encore->jsFiles($section); $encore->cssFiles($section); $encore->asset($path);
How to configure webpack
webpack.config.js
More about Encore
https://symfony.com/doc/current/frontend/encore/installation.html