2021-08-03 02:18:00 +02:00
|
|
|
// 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. */
|
2021-08-05 01:19:14 +02:00
|
|
|
'**/node_modules/**/*', '**/scripts/**', '**/target/**', '**/prototypes/**', '**/src/matrix/storage/memory/**'
|
2021-08-03 02:18:00 +02:00
|
|
|
],
|
|
|
|
plugins: [
|
|
|
|
/* ... */
|
|
|
|
],
|
|
|
|
packageOptions: {
|
|
|
|
/* ... */
|
|
|
|
external: [
|
|
|
|
/* Olm seems to import these but not use them. */
|
|
|
|
"path",
|
|
|
|
"crypto",
|
|
|
|
"fs",
|
|
|
|
],
|
|
|
|
},
|
|
|
|
devOptions: {
|
|
|
|
open: "none",
|
|
|
|
/* ... */
|
|
|
|
},
|
|
|
|
buildOptions: {
|
|
|
|
/* ... */
|
|
|
|
},
|
|
|
|
};
|