Skip to content

Commit

Permalink
feat(create-arca): remove delete log plugin, add build script
Browse files Browse the repository at this point in the history
  • Loading branch information
spencer17x committed Apr 7, 2022
1 parent 7fc73ad commit 6b1619c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@
"build:prod": "rimraf build && rollup -c rollup.config.ts --silent --environment NODE_ENV:prod",
"build:test": "rimraf build && rollup -c rollup.config.ts --silent --environment NODE_ENV:test",
"build:dev": "rimraf build && rollup -c rollup.config.ts --silent --environment NODE_ENV:dev",
"build": "rimraf build && rollup -c rollup.config.ts --silent --environment NODE_ENV:prod",
"test": "jest -c jest.config.ts",
"coverage": "jest -c jest.config.ts --coverage",
"test:watch": "jest -c jest.config.ts --coverage --watch",
"tsc": "tsc -init",
"postinstall": "ts-node tools/init"
},
"license": "MIT",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import json from '@rollup/plugin-json';
import commonjs from '@rollup/plugin-commonjs';
import { uglify } from 'rollup-plugin-uglify';
import replace from '@rollup/plugin-replace';
import { terser } from 'rollup-plugin-terser';

const pkg = require('./package.json');

Expand Down Expand Up @@ -59,11 +58,6 @@ export default {
// which external modules to include in the bundle
// https://github.com/rollup/rollup-plugin-node-resolve#usage
nodeResolve(),
uglify(),
isProd && terser({
compress: {
pure_funcs: ['console.log'] // remove console.log
}
})
uglify()
]
};

0 comments on commit 6b1619c

Please sign in to comment.