You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
I am able to generate html pages using partials but I would like the bundle.css and bundle.js added to the pages but can't see any examples of doing that.
There are multiple options, none of them involves the handlebars-plugin, since its job is to compile handlebars-templates only. I am no longer working with this plugin, so i can only give you some directions right now.
When you know your bundles filename, you can simply add the file with a <script src>-tag to your index.hbx file
In case your bundle-filename is dynamically set in webpack.config you could also add the name into the json-file passed to handlebars and render the source into the script-tag
Being webpack, there might be multiple other options, depending on config
Looking at your config, it seems the quickest option is to <script src="app.js"></script> to your templates.
Hello,
I am able to generate html pages using partials but I would like the bundle.css and bundle.js added to the pages but can't see any examples of doing that.
My simplified webpack config (based on https://github.com/wbkd/webpack-starter)
Files
The text was updated successfully, but these errors were encountered: