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) {
236236 ? options . lib
237237 : getLibraryName ( replaceExtension ( options . entry , '' ) )
238238 webpackConfig . output . libraryTarget = 'umd'
239- } else {
239+ } else if ( options . html !== false ) {
240240 // only output index.html in non-lib mode
241241 var html = Array . isArray ( options . html ) ? options . html : [ options . html || { } ]
242242
Original file line number Diff line number Diff line change @@ -155,7 +155,7 @@ Type: `Object`
155155
156156#### html
157157
158- Type: ` Object ` ` Array `
158+ Type: ` Object ` ` Array ` ` boolean `
159159
160160[ html-webpack-plugin] ( https://github.com/ampedandwired/html-webpack-plugin ) options, use this option to customize ` index.html ` output, default value:
161161
@@ -166,7 +166,7 @@ Type: `Object` `Array`
166166}
167167```
168168
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 ` .
170170
171171#### filename
172172
You can’t perform that action at this time.
0 commit comments