From 14938b35e7d59abe30bc6cce857264cad3df94d4 Mon Sep 17 00:00:00 2001 From: brandonocasey Date: Thu, 22 Aug 2019 17:58:15 -0400 Subject: [PATCH] only minify .min.js --- scripts/rollup.config.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/rollup.config.js b/scripts/rollup.config.js index 307776296..7966237f3 100644 --- a/scripts/rollup.config.js +++ b/scripts/rollup.config.js @@ -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) {