Skip to content

Commit

Permalink
Allow to disable html
Browse files Browse the repository at this point in the history
  • Loading branch information
egoist committed Feb 8, 2017
1 parent d74a135 commit 7fca961
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion bin/vue-build
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ if (options.lib) {
? options.lib
: getLibraryName(replaceExtension(options.entry, ''))
webpackConfig.output.libraryTarget = 'umd'
} else {
} else if (options.html !== false) {
// only output index.html in non-lib mode
var html = Array.isArray(options.html) ? options.html : [options.html || {}]

Expand Down
4 changes: 2 additions & 2 deletions docs/build.md
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ Type: `Object`

#### html

Type: `Object` `Array`
Type: `Object` `Array` `boolean`

[html-webpack-plugin](https://github.com/ampedandwired/html-webpack-plugin) options, use this option to customize `index.html` output, default value:

Expand All @@ -166,7 +166,7 @@ Type: `Object` `Array`
}
```

Check out the [default template](/lib/template.html) file we use.
Check out the [default template](/lib/template.html) file we use. To disable generating html file, you can set `html` to `false`.

#### filename

Expand Down

0 comments on commit 7fca961

Please sign in to comment.