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

Absolute path for SPAs #12

Open
sporto opened this issue Sep 15, 2018 · 1 comment
Open

Absolute path for SPAs #12

sporto opened this issue Sep 15, 2018 · 1 comment

Comments

@sporto
Copy link

sporto commented Sep 15, 2018

The plugin will add the bundle like src="app.js".

But I'm building a single page application, where refreshing the browser at any path will always server the same page. E.g. /a/b/c always serves the same index.html.

Because the path is relative app.js. The page cannot find the bundle. Could you add a config option to add this as absolute path? e.g. /app.js

@sporto
Copy link
Author

sporto commented Sep 15, 2018

Looks like adding a <base href="/" /> in head might be enough.

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

1 participant