Skip to content

Commit

Permalink
Use single html option
Browse files Browse the repository at this point in the history
  • Loading branch information
Tim Kelty committed Nov 16, 2017
1 parent 068c1bf commit f0ca2d8
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions packages/web/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,7 @@ module.exports = (neutrino, opts = {}) => {
const options = merge({
env: [],
hot: true,
html: true,
htmlTemplate: {},
html: {},
devServer: {},
publicPath: './',
polyfills: {
Expand Down Expand Up @@ -143,7 +142,7 @@ module.exports = (neutrino, opts = {}) => {
.end()
.end()
.when(options.html, (config) => {
neutrino.use(htmlTemplate, options.htmlTemplate);
neutrino.use(htmlTemplate, options.html);
config.plugin('script-ext')
.use(ScriptExtHtmlPlugin, [{ defaultAttribute: 'defer' }]);
})
Expand Down Expand Up @@ -171,7 +170,7 @@ module.exports = (neutrino, opts = {}) => {
}]
});

if (!options.html) {
if (options.html === false) {
neutrino.config.plugin('manifest')
.use(ManifestPlugin);
}
Expand Down

0 comments on commit f0ca2d8

Please sign in to comment.