preload-webpack-plugin icon indicating copy to clipboard operation
preload-webpack-plugin copied to clipboard

fix: judge include type

Open 2heal1 opened this issue 4 years ago • 1 comments

options.include can be stringarrayobjectundefined . 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',
  }
}

2heal1 avatar Sep 16 '21 12:09 2heal1

@sodatea this pr can solve this problem,can you review it ?😋

2heal1 avatar Sep 16 '21 12:09 2heal1