Reputation: 14159
Is there a way to skip the uglify js plugin from webpack 2 when runs in --production
mode?
Upvotes: 5
Views: 4117
Reputation: 14159
optimist
.boolean("p")
.describe(
"p",
"shortcut for --optimize-minimize --define process.env.NODE_ENV=\"production\""
)
A temp workaround would be run webpack --define process.env.NODE_ENV=\"production\"
instead of webpack -p
Upvotes: 9