Skip to content

Commit

Permalink
chore(build): update build scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
adamdbradley committed Jul 28, 2020
1 parent 26d1fed commit 9d0a72b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -22,7 +22,7 @@
"scripts": {
"start": "npm run watch",
"build": "node scripts && npm run tsc.prod && npm run rollup.prod.ci",
"build.prod": "node scripts && npm run tsc.scripts && npm run tsc.prod && npm run rollup.prod",
"build.prod": "node scripts && npm run tsc.scripts && npm run tsc.prod && npm run rollup.prod.ci",
"watch": "node scripts && npm run tsc && concurrently \"npm run rollup.watch\" \"npm run tsc.watch\"",
"release": "node scripts --release --publish",
"release.prepare": "node scripts --release --prepare",
Expand Down
2 changes: 1 addition & 1 deletion scripts/bundles/internal-platform-client.ts
Expand Up @@ -6,7 +6,7 @@ import { replacePlugin } from './plugins/replace-plugin';
import { reorderCoreStatementsPlugin } from './plugins/reorder-statements';
import { getBanner } from '../utils/banner';
import { writePkgJson } from '../utils/write-pkg-json';
import { rollup, RollupOptions, OutputOptions } from 'rollup';
import { rollup, RollupOptions } from 'rollup';
import glob from 'glob';
import ts from 'typescript';
import { minify } from 'terser';
Expand Down
3 changes: 2 additions & 1 deletion scripts/bundles/plugins/pretty-minify.ts
Expand Up @@ -12,7 +12,8 @@ export function prettyMinifyPlugin(opts: BuildOptions): Plugin {
if (typeof b.code === 'string') {
const minifyResults = terser.minify(b.code, {
compress: { hoist_vars: true, hoist_funs: true, ecma: 2018, keep_fnames: true, keep_classnames: true, module: true, arrows: true, passes: 2 },
output: { ecma: 2018, indent_level: 2, beautify: true, comments: false },
output: { ecma: 2018, indent_level: 1, beautify: true, comments: false },
sourceMap: false,
});
if (minifyResults.error) {
throw minifyResults.error;
Expand Down

0 comments on commit 9d0a72b

Please sign in to comment.