Managing Assets (css/js)

The default installer copy/paste a skeleton for a website stylized with Tailwind CSS.

To update it, just edit app.js, app.css, directly the tailwind configuration or the vite.config.js.

Then run the build:

npm install && npm run build
# OR for development with hot reload:
npm run dev

If you want to change the default location for assets, just edit ./config/packages/pushword.yaml and configure apps.0.assets (eg)

Automatic Tailwind Update on page update

If you use Tailwind classes inside page content, by default the command npm run build is run when you update a page.

May be sure this option is working by checking var/log/lastTailwindGeneration.

If not working, you may add path to bin in config :

pushword:
  path_to_bin: /home/username/bin:/opt/alt/alt-nodejs16/root/usr/bin/

To disable it, add in config :

pushword:
  tailwind_generator: false

Note : the assets built by tailwind can be built after page loaded.