From 93228e24a11fa9ca437b8600ac4e2d32c0a0a746 Mon Sep 17 00:00:00 2001 From: Alex Ilchenko Date: Thu, 4 Feb 2021 16:50:24 +0100 Subject: [PATCH] feat: build optimization --- snowpack.config.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/snowpack.config.js b/snowpack.config.js index da347c4..2c6459a 100644 --- a/snowpack.config.js +++ b/snowpack.config.js @@ -25,8 +25,11 @@ module.exports = { // {"match": "routes", "src": ".*", "dest": "/index.html"}, ], optimize: { - /* Example: Bundle your final build: */ - // "bundle": true, + bundle: true, + minify: true, + splitting: true, + target: 'es2018', + treeshake: true, }, packageOptions: { /* ... */