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 to with HtmlWebpackPlugin? #90
Comments
I'm not sure if this'll help, but I ran into a similar issue and it was simply because I was not specifying the entry point correctly in webpack.config.js - the first argument to the plugin should be the name of your entry point, e.g. your entry point from above is: |
Still have the same error |
Understood. I was really interested in this, it took awhile to get the elements correct, but I did end up creating a repository that shows how to use this plugin with Mithril. I believe the root cause of the issues you are having is that mithril is expecting to be run from the browser and this plugin runs it from node's context. I walkthrough the steps I took to get the two to work together in the linked repository. I'm not sure if it'll solve what you are ultimately trying to do, but my hope is that it is helpful. |
my config is the following
my entry point is just rendering a simple component
now when Add the static site generator at the end of plugin list always got an "Error: window is not defined" maybe I'm doing something wrong with my config
The text was updated successfully, but these errors were encountered: