No assets generated for custom apps

bench build does not generate assets.

directory structure:

image

build.json

image

template file

image

build resuls:

image

Finally solved this (I’m using v15). Adding the solution here in case it helps anyone else.

Instead of build.json (delete it) create a file which ends in bundle.js in your custom app directory app/app/public/js.

E.g.

app.bundle.js

In this file import the files you want to bundle.

E.g.

import "templates/ticket_comments.html"
import "myotherjsfile.js"

then run

bench build

or

bench watch