Skip to content

Commit 7fca961

Browse files
committed
Allow to disable html
1 parent d74a135 commit 7fca961

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

bin/vue-build

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

docs/build.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)