3.0.0 • Published 3 years ago
@alesmenzel/preload-webpack-plugin v3.0.0
@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',
})
]
}