bankai icon indicating copy to clipboard operation
bankai copied to clipboard

Production build served from a subfolder

Open aksperiod opened this issue 6 years ago • 1 comments

My app will live in a subfolder on my domain, however after bankai build, the css and js bundles are loaded from the domain root because they start with a forward slash. Is it possible to change this?

aksperiod avatar Sep 04 '18 23:09 aksperiod

You can do:

bankai build app.js --base /sub/dir

That will generate tags like <script src="/sub/dir/HASH_HERE/bundle.js"></script>

goto-bus-stop avatar Sep 07 '18 17:09 goto-bus-stop