Jon Harris

Results 50 comments of Jon Harris

FYI, I just submitted a PR to Webpack v2.2 to add require.ensure error handling: https://github.com/webpack/webpack/pull/4069

import() does add error handling, but doesn't support named chunks, or recursive code splitting, see my comment here: https://github.com/webpack/webpack/issues/3364#issuecomment-273983958

Hi, the `hash` passed as the 2nd argument above is the webpack compilation hash, so it is the same as the `[hash]` you mentioned in your question. As for the...

Usually when you get tags twice it's because of the content your html template, or because webpack was already injecting the file. Can you check that whether the duplicate file...

Can you try removing the HtmlWebpackTagsPlugin from your webpack config and verify if the script/file is still there in your generated html file? I don't think it can be this...

This plugin IS a plugin for `html-webpack-plugin` and the test suite has dozens of tests that are run against both version 3 and version 4 of that plugin. I can...

I can't speak to gatsby specific issues, but it might be a good idea for this plugin to list `html-webpack-plugin` as a peerDependency...

@stevemarksd version 3.0.1 has just been published to update the peerDependencies. Provided you're already using version 3.x (which requires webpack >= 5.x) can you update your dependencies and confirm whether...

Hi @JDansercoer can you share more of your webpack config? Also, please note that it is possible to set the `publicPath` for this plugin to a **different value** than the...

I think the `usePublicPath` and `addPublicPath` options can help you here! Try something like this: ``` new HtmlWebpackTagsPlugin({ usePublicPath: true, addPublicPath: (assetPath, publicPath) => { if (assetPath.startsWith('http')) { return assetPath;...