question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

html-webpack-inline-source-plugin is no longer maintained

See original GitHub issue

html-webpack-inline-source-plugin is no longer maintained and doesn’t work with html-webpack-plugin@^4.0. More detailed information can be found here

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

5reactions
deanblacccommented, Mar 31, 2021

@andrejbroncek hey ! sorry I haven’t run into that myself. The only other thing I recall amending was injecting the roll up into the body (was head originally, which was breaking bits) like so:

new HtmlWebpackPlugin({
    template: './src/ui.html',
    filename: 'ui.html',
    chunks: ['ui'],
    inject: 'body'
}),

Im not sure if that will solve your issue though

1reaction
shuta13commented, May 19, 2021

@deanblacc @andrejbroncek Hi, I tried https://github.com/figma/plugin-samples/issues/34#issuecomment-811021237, but it did not work well…

react-sample

I think it’s better to replace html-webpack-inline-source-plugin with react-dev-utils/InlineChunkHtmlPlugin recommended by the author.

https://github.com/DustinJackson/html-webpack-inline-source-plugin#readme

This plugin is no longer maintained. Facebook provides a similar plugin: https://github.com/facebook/create-react-app/blob/edc671eeea6b7d26ac3f1eb2050e50f75cf9ad5d/packages/react-dev-utils/InlineChunkHtmlPlugin.js#L10

I wrote the following and it worked fine. ( html-webpack-plugin v4.x is required) Please check it !

// ---
const InlineChunkHtmlPlugin = require("react-dev-utils/InlineChunkHtmlPlugin");

module.exports = (env, argv) => ({
  // ---
  plugins: [
    new HtmlWebpackPlugin({
      template: "./src/ui.html",
      filename: "ui.html"
    }),
    new InlineChunkHtmlPlugin(HtmlWebpackPlugin, [/ui/]),
  ],
});

I will create a PR for the updates if needed 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

[html-webpack-inline-source-plugin] is not working ... - GitHub
I'm currently using html-webpack-inline-source-plugin@beta, but that project doesn't seem to be maintained. +1 for including something like that ...
Read more >
html-webpack-inline-source-plugin-patched - npm package
An important project maintenance signal to consider for html-webpack-inline-source-plugin-patched is that it hasn't seen any new versions released to npm in the ...
Read more >
Suggestion: Update figma/plugin-examples
html-webpack-inline-source-plugin is no longer maintained, as reported in this issue on GitHub. So I think it needs to update the example ...
Read more >
html-webpack-plugin - npm
The html-webpack-plugin works without configuration. ... To generate more than one HTML file, declare the plugin more than once in your ...
Read more >
How can I create one bundle file from react-create-app
Note: this plugin is not actively maintained (see the note at top of https://github.com/dustinjackson/html-webpack-inline-source-plugin#readme) ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found