Skip to content
This repository was archived by the owner on Dec 26, 2018. It is now read-only.

Commit 048dae2

Browse files
committed
fix htmlMinifyOptions undefined
1 parent 9c550a7 commit 048dae2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/compiler.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ compiler.loadConfig = function () {
5050
compiler.applyConfig = function (config) {
5151
// copy user options to default options
5252
Object.keys(config).forEach(function (key) {
53-
if (key === 'htmlMinifier') {
53+
if (key === 'htmlMinifier' && process.env.NODE_ENV === 'production') {
5454
htmlMinifyOptions = assign(htmlMinifyOptions, config[key])
5555
} else if (key !== 'customCompilers') {
5656
options[key] = config[key]

0 commit comments

Comments
 (0)