Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Production build served from a subfolder #512

Open
aksperiod opened this issue Sep 4, 2018 · 1 comment
Open

Production build served from a subfolder #512

aksperiod opened this issue Sep 4, 2018 · 1 comment

Comments

@aksperiod
Copy link

aksperiod commented Sep 4, 2018

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?

@goto-bus-stop
Copy link
Member

goto-bus-stop commented Sep 7, 2018

You can do:

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

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants