Skip to content

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

@eguneys

Description

@eguneys

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions