ditch buble, replace uglify with terser
This commit is contained in:
parent
8a4e915272
commit
ff23cd3eeb
2 changed files with 5 additions and 8 deletions
|
@ -2,13 +2,12 @@
|
|||
"name": "svelte-app",
|
||||
"version": "1.0.0",
|
||||
"devDependencies": {
|
||||
"npm-run-all": "^4.1.3",
|
||||
"rollup": "^0.58.2",
|
||||
"rollup-plugin-buble": "^0.19.2",
|
||||
"rollup-plugin-commonjs": "^9.1.3",
|
||||
"rollup-plugin-node-resolve": "^3.0.3",
|
||||
"rollup-plugin-svelte": "^4.0.0",
|
||||
"rollup-plugin-uglify": "^3.0.0",
|
||||
"npm-run-all": "^4.1.3",
|
||||
"rollup-plugin-terser": "^1.0.1",
|
||||
"serve": "^6.5.6",
|
||||
"svelte": "^2.6.0"
|
||||
},
|
||||
|
|
|
@ -1,8 +1,7 @@
|
|||
import svelte from 'rollup-plugin-svelte';
|
||||
import resolve from 'rollup-plugin-node-resolve';
|
||||
import commonjs from 'rollup-plugin-commonjs';
|
||||
import buble from 'rollup-plugin-buble';
|
||||
import uglify from 'rollup-plugin-uglify';
|
||||
import { terser } from 'rollup-plugin-terser';
|
||||
|
||||
const production = !process.env.ROLLUP_WATCH;
|
||||
|
||||
|
@ -38,8 +37,7 @@ export default {
|
|||
commonjs(),
|
||||
|
||||
// If we're building for production (npm run build
|
||||
// instead of npm run dev), transpile and minify
|
||||
production && buble({ include: ['src/**', 'node_modules/svelte/shared.js'] }),
|
||||
production && uglify()
|
||||
// instead of npm run dev), minify
|
||||
production && terser()
|
||||
]
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue