preload-webpack-plugin
preload-webpack-plugin copied to clipboard
fix: judge include type
options.include can be string、array、object、undefined .
But only the string type is judged in the code. When I use the below options ,it will be error.
{
rel: 'preload',
include: {
type: 'allAssets',
}
}
@sodatea this pr can solve this problem,can you review it ?😋