Webpack plugin to inline critical CSS and async load the rest.
npm install beastcss-webpack-plugin> Inline critical CSS and async load the rest.
``sh`
npm i -D beastcss-webpack-plugin
or
`sh`
yarn add -D beastcss-webpack-plugin
or
`sh`
pnpm add -D beastcss-webpack-plugin
`js
// webpack.config.js
const BeastcssWebpackPlugin = require('beastcss-webpack-plugin');
module.exports = {
plugins: [
new BeastcssWebpackPlugin({
// optional configuration (see below)
}),
],
};
``
The Webpack plugin supports the same options as the standalone beastcss package.