Skip to content

Commit a85c950

Browse files
yoshuawuytsgoto-bus-stop
authored andcommitted
add env option (#2)
1 parent 42a447a commit a85c950

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

index.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,11 @@ module.exports = function (b, opts) {
1010
throw new Error('tinyify: must be used as a plugin, not a transform')
1111
}
1212

13+
opts = opts || {}
14+
1315
var env = Object.assign({
1416
NODE_ENV: 'production'
15-
}, process.env)
17+
}, process.env, opts.env)
1618

1719
// Remove `assert()` calls.
1820
b.transform(unassertify, { global: true })

0 commit comments

Comments
 (0)