3.0.0 • Published 3 years ago

@alesmenzel/preload-webpack-plugin v3.0.0

Weekly downloads
20
License
MIT
Repository
github
Last release
3 years ago

@alesmenzel/preload-webpack-plugin

Pre-requisites

This module requires Webpack >= 5.0.0 and html-webpack-plugin >= 5.0.0.

Installation

npm install --save-dev @alesmenzel/preload-webpack-plugin

Usage

const PreloadWebpackPlugin = require('@alesmenzel/preload-webpack-plugin');

// ...

  plugins: [
    new HtmlWebpackPlugin({ /* ... */ }),
    new PreloadWebpackPlugin({
      include: 'initial',
      rel: 'preload',
    })
  ]
}