Skip to content

Commit

Permalink
only minify .min.js
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonocasey committed Aug 22, 2019
1 parent 36fb856 commit 14938b3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion scripts/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,11 @@ const options = {
primedPlugins(defaults) {
return Object.assign(defaults, {
worker: worker(),
uglify: terser({output: {comments: 'some'}, compress: {passes: 2}})
uglify: terser({
output: {comments: 'some'},
compress: {passes: 2},
include: [/^.+\.min\.js$/]
})
});
},
babel(defaults) {
Expand Down

0 comments on commit 14938b3

Please sign in to comment.