Skip to content

Latest commit

 

History

History

README.md

Beastcss Webpack Plugin

Inline critical CSS and async load the rest.

Installation

npm i -D beastcss-webpack-plugin

or

yarn add -D beastcss-webpack-plugin

or

pnpm add -D beastcss-webpack-plugin

Usage

// webpack.config.js
const BeastcssWebpackPlugin = require('beastcss-webpack-plugin');

module.exports = {
  plugins: [
    new BeastcssWebpackPlugin({
      // optional configuration (see below)
    }),
  ],
};

Options

The Webpack plugin supports the same options as the standalone beastcss package.