From c8aba0bd03ac2adcd849bfdf135257dc1b7843f3 Mon Sep 17 00:00:00 2001 From: Leah Date: Fri, 26 Oct 2018 03:35:31 +0200 Subject: [PATCH] whoops, didn't mean to fuck this up --- src/prog.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/prog.js b/src/prog.js index ff8f0de..59bdc4e 100644 --- a/src/prog.js +++ b/src/prog.js @@ -6,7 +6,8 @@ const toArray = val => (Array.isArray(val) ? val : val == null ? [] : [val]); export default handler => { const cmd = type => (str, opts) => { opts.watch = opts.watch || type === 'watch'; - opts.compress = opts.compress != null || opts.target !== 'node'; + opts.compress = + opts.compress != null ? opts.compress : opts.target !== 'node'; opts.entries = toArray(str || opts.entry).concat(opts._); handler(opts); };