From 32ffa345cde67b1affe2750add620522c0a24577 Mon Sep 17 00:00:00 2001 From: Philipp Dormann Date: Thu, 14 Jan 2021 18:17:12 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A8=20config=20compatibility=20for=20n?= =?UTF-8?q?ew=20Snowpack=20V3=20bundler?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- snowpack.config.js | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/snowpack.config.js b/snowpack.config.js index 332cb925..a1be08ab 100644 --- a/snowpack.config.js +++ b/snowpack.config.js @@ -5,10 +5,11 @@ module.exports = { src: '/_dist_' }, plugins: [ '@snowpack/plugin-svelte' ], - install: [ - /* ... */ + routes: [ + /* Enable an SPA Fallback in development: */ + { match: 'routes', src: '.*', dest: '/index.html' } ], - installOptions: { + packageOptions: { /* ... */ sourceMap: false }, @@ -18,13 +19,8 @@ module.exports = { buildOptions: { /* ... */ }, - proxy: { - /* ... */ - }, alias: { /* ... */ }, - experiments: { - optimize: { bundle: true, minify: true } - } + optimize: { bundle: true, minify: true } };