File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -236,7 +236,7 @@ if (options.lib) {
236
236
? options . lib
237
237
: getLibraryName ( replaceExtension ( options . entry , '' ) )
238
238
webpackConfig . output . libraryTarget = 'umd'
239
- } else {
239
+ } else if ( options . html !== false ) {
240
240
// only output index.html in non-lib mode
241
241
var html = Array . isArray ( options . html ) ? options . html : [ options . html || { } ]
242
242
Original file line number Diff line number Diff line change @@ -155,7 +155,7 @@ Type: `Object`
155
155
156
156
#### html
157
157
158
- Type: ` Object ` ` Array `
158
+ Type: ` Object ` ` Array ` ` boolean `
159
159
160
160
[ html-webpack-plugin] ( https://github.com/ampedandwired/html-webpack-plugin ) options, use this option to customize ` index.html ` output, default value:
161
161
@@ -166,7 +166,7 @@ Type: `Object` `Array`
166
166
}
167
167
```
168
168
169
- Check out the [ default template] ( /lib/template.html ) file we use.
169
+ Check out the [ default template] ( /lib/template.html ) file we use. To disable generating html file, you can set ` html ` to ` false ` .
170
170
171
171
#### filename
172
172
You can’t perform that action at this time.
0 commit comments