Skip to content

Commit 5417f0c

Browse files
committed
fix keep names option
1 parent 676ae7f commit 5417f0c

3 files changed

Lines changed: 5 additions & 4 deletions

File tree

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# Changelog
22

3+
## 0.9.1
4+
- Fixed *--keep-names* cli option.
5+
36
## 0.9.0
47
- Added babel native transform support and updated babelrc.
58
- Added TerserPlugin with *--keep-names* cli option.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@squirrel-forge/simple-webpack",
3-
"version": "0.9.0",
3+
"version": "0.9.1",
44
"description": "A thin node wrapper for webpack with some basic options and configuration.",
55
"main": "src/classes/SimpleWebpack.js",
66
"scripts": {

src/cli.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -208,9 +208,7 @@ module.exports = async function cli() {
208208
}
209209

210210
// Terser keep names options
211-
if ( swpOptions.minify && options.keepnames ) {
212-
swpOptions.keepnames = true;
213-
}
211+
swpOptions.keepnames = options.keepnames;
214212

215213
// Load extend options
216214
if ( options.extend ) {

0 commit comments

Comments
 (0)