File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed
packages/builder/builder-webpack-provider/tests/plugins Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -193,6 +193,22 @@ describe('plugins/html', () => {
193
193
expect ( await builder . matchWebpackPlugin ( 'HtmlWebpackPlugin' ) ) . toBeFalsy ( ) ;
194
194
} ) ;
195
195
196
+ it ( 'should disable html plugin when htmlPlugin is an array and contains false' , async ( ) => {
197
+ const builder = await createStubBuilder ( {
198
+ plugins : [ builderPluginEntry ( ) , builderPluginHtml ( ) ] ,
199
+ entry : {
200
+ main : './src/main.ts' ,
201
+ } ,
202
+ builderConfig : {
203
+ tools : {
204
+ htmlPlugin : [ { } , false ] ,
205
+ } ,
206
+ } ,
207
+ } ) ;
208
+
209
+ expect ( await builder . matchWebpackPlugin ( 'HtmlWebpackPlugin' ) ) . toBeFalsy ( ) ;
210
+ } ) ;
211
+
196
212
it ( 'should support multi entry' , async ( ) => {
197
213
const builder = await createStubBuilder ( {
198
214
plugins : [ builderPluginEntry ( ) , builderPluginHtml ( ) ] ,
You can’t perform that action at this time.
0 commit comments