From 177dfd339a29c195f40dca469e009c1ad6d7bb59 Mon Sep 17 00:00:00 2001 From: Danila Fedorin Date: Fri, 6 Aug 2021 12:17:03 -0700 Subject: [PATCH] Add a basic snowpack configuration --- snowpack.config.js | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 snowpack.config.js diff --git a/snowpack.config.js b/snowpack.config.js new file mode 100644 index 00000000..d59d0c06 --- /dev/null +++ b/snowpack.config.js @@ -0,0 +1,29 @@ +// Snowpack Configuration File +// See all supported options: https://www.snowpack.dev/reference/configuration + +/** @type {import("snowpack").SnowpackUserConfig } */ +module.exports = { + mount: { + "src": "/src", + "public": "/", + "lib": {url: "/lib", static: true }, + /* ... */ + }, + exclude: [ + /* Avoid scanning scripts which use dev-dependencies and pull in babel, rollup, etc. */ + '**/node_modules/**/*', '**/scripts/**', '**/target/**', '**/prototypes/**', '**/src/matrix/storage/memory/**' + ], + plugins: [ + /* ... */ + ], + packageOptions: { + /* ... */ + }, + devOptions: { + open: "none", + /* ... */ + }, + buildOptions: { + /* ... */ + }, +};