No description
.forgejo/workflows | ||
assets | ||
bin | ||
config | ||
deploy | ||
migrations | ||
public | ||
src | ||
templates | ||
tests | ||
var | ||
.env | ||
.env.test | ||
.gitignore | ||
composer.json | ||
composer.lock | ||
ecs.php | ||
package-lock.json | ||
package.json | ||
php-styler.php | ||
phpunit.xml | ||
phpunit.xml.dist | ||
README.md | ||
rector.php | ||
symfony.lock | ||
webpack.config.js |
Asset Management with Webpack Encore
This project uses Webpack Encore for asset management including JavaScript and CSS minification.
Setup
Before using the application, you need to set up the front-end assets:
-
Install Node.js dependencies:
npm install
-
Copy the existing static assets to the Encore assets directory:
mkdir -p assets/css assets/js cp public/static/css/water.min.css assets/css/ cp public/static/js/htmx.min.js assets/js/
-
Build the assets:
For development:
npm run dev
For production (with minification):
npm run build
Development
During development, you can use the watch command to automatically rebuild assets when files change: