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

How can I serve multiple pages but with url .html removed #86

Open
eguneys opened this issue Mar 17, 2022 · 2 comments
Open

How can I serve multiple pages but with url .html removed #86

eguneys opened this issue Mar 17, 2022 · 2 comments

Comments

@eguneys
Copy link

eguneys commented Mar 17, 2022

So rollup config looks like this:

   htmlTemplate({
        template: 'src/index.html',
        target: 'index.html'
      }),
      htmlTemplate({
        template: 'src/learn.html',
        target: 'learn.html'
      }),

an inside index.html I have this link:

<a href="/learn"/>

when navigated to this link:

It doesn't pickup learn.html which is the behaviour I want.

I don't want to put .html in the url bar.

@simonpai
Copy link

simonpai commented Sep 1, 2022

Try rollup-plugin-dev instead.

@MendyBerger
Copy link

Take a look at the historyApiFallback option

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

3 participants