add-css-to-head-plugin

Webpack plugin that adds purified css to html files.

Usage no npm install needed!

<script type="module">
  import addCssToHeadPlugin from 'https://cdn.skypack.dev/add-css-to-head-plugin';
</script>

README

Add CSS to Head Plugin

Webpack plugin that adds purified css to the head of html files.

Install

$ npm install --save-dev add-css-to-head-plugin

Usage

webpack.config.js

var AddCSSToHeadPlugin = require('add-css-to-head-plugin');

module.exports = {
  ...
  plugins: [new AddCSSToHeadPlugin()]
};