Browse Source

Specify better options to terser.

master
Zed A. Shaw 3 weeks ago
parent
commit
af6cda96d8
  1. 10
      rollup.config.js

10
rollup.config.js

@ -22,10 +22,10 @@ if(nourl.slice(0, 3) === "/C:") {
}
const root_path = path.dirname(nourl);
function serve() {
const serve = () => {
let server;
function toExit() {
const toExit = () => {
if (server) server.kill(0);
}
@ -103,7 +103,11 @@ export default {
// If we're building for production (npm run build
// instead of npm run dev), minify
production && terser(),
production && terser({
compress: true,
mangle: true,
ecma: "2017"
}),
visualizer({sourcemap: true, filename: "debug/stats.html"})
],

Loading…
Cancel
Save