djaax/html-webpack-inline-style-plugin

Plugin doesn`t process a html-webpack-inline-source-plugin result

radiocity opened this issue · 2 comments

Files

index.html

<html>
  <body>
    <h1>Hello</h1>
  </body>
</html>

style.css

body {
  background: red;
}

Webpack

npm i -D github:DustinJackson/html-webpack-inline-source-plugin
// ...
const HtmlWebpackInlineStylePlugin = require('html-webpack-inline-style-plugin');
const HtmlWebpackInlineSourcePlugin = require('html-webpack-inline-source-plugin');
// ...
plugins: [
  // ...
  new HtmlWebpackPlugin({
    inlineSource: '.css$',
  }),
  new HtmlWebpackInlineSourcePlugin(),
  new HtmlWebpackInlineStylePlugin(),
],
// ...

Result

<html>
  <head>
    <style type="text/css">
      body { background: red; }
    </style>
  </head>
  <body>
    <h1>Hello</h1>
  </body>
</html>

Hey @radiocity I am also facing this same issue, can you remember if you ever solved it?

@Swanseatom, I didn`t solve it 🙁