Detalhes do pacote

beastcss-webpack-plugin

freddy3851041MIT2.1.3

Webpack plugin to inline critical CSS and async load the rest.

critical css, inline css, critical, beastcss

readme (leia-me)

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.