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

Adding more pages #34

Open
annamira opened this issue Jul 31, 2019 · 2 comments
Open

Adding more pages #34

annamira opened this issue Jul 31, 2019 · 2 comments

Comments

@annamira
Copy link

annamira commented Jul 31, 2019

Hi @lifenautjoe !

Thank you for sharing the kit, it works great! Turns out the project I'm working on needs more than 1 page though. What would be a good way to add more pages to the app using this kit?

Thank you!

@mensch
Copy link

mensch commented Nov 11, 2019

Not sure if this it the official way to do it, but you can extend the webpack config to make it cover more pages.

So the plugins entry in webpack.dev.js becomes like this:

    plugins: [
        new HtmlWebpackPlugin({
            template: './index.html',
            inject: true,
            filename: 'index.html'
        }),
        new HtmlWebpackPlugin({
          template: './another-page.html',
          inject: true,
          filename: 'another-page.html'
        })
    ]

The plugins entry of webpack.prod.js should have the same entries.

@annamira
Copy link
Author

annamira commented Dec 3, 2019

Thank you @mensch , will give it a shot!

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