2021-08-06 21:17:03 +02:00
|
|
|
// Snowpack Configuration File
|
|
|
|
// See all supported options: https://www.snowpack.dev/reference/configuration
|
|
|
|
|
|
|
|
/** @type {import("snowpack").SnowpackUserConfig } */
|
|
|
|
module.exports = {
|
|
|
|
mount: {
|
2021-08-17 23:13:27 +02:00
|
|
|
// More specific paths before less specific paths (if they overlap)
|
|
|
|
"src/platform/web/docroot": "/",
|
2021-08-06 21:17:03 +02:00
|
|
|
"src": "/src",
|
|
|
|
"lib": {url: "/lib", static: true },
|
2021-08-06 22:19:24 +02:00
|
|
|
"assets": "/assets",
|
2021-08-06 21:17:03 +02:00
|
|
|
/* ... */
|
|
|
|
},
|
|
|
|
exclude: [
|
|
|
|
/* Avoid scanning scripts which use dev-dependencies and pull in babel, rollup, etc. */
|
2021-08-17 12:53:36 +02:00
|
|
|
'**/node_modules/**/*',
|
|
|
|
'**/scripts/**',
|
|
|
|
'**/target/**',
|
|
|
|
'**/prototypes/**',
|
|
|
|
'**/src/matrix/storage/memory/**',
|
|
|
|
'**/src/platform/web/legacy-polyfill.js',
|
|
|
|
'**/src/platform/web/worker/polyfill.js'
|
2021-08-06 21:17:03 +02:00
|
|
|
],
|
|
|
|
plugins: [
|
|
|
|
/* ... */
|
|
|
|
],
|
|
|
|
packageOptions: {
|
|
|
|
/* ... */
|
|
|
|
},
|
|
|
|
devOptions: {
|
|
|
|
open: "none",
|
2021-08-17 12:53:00 +02:00
|
|
|
hmr: false,
|
2021-08-06 21:17:03 +02:00
|
|
|
/* ... */
|
|
|
|
},
|
|
|
|
buildOptions: {
|
|
|
|
/* ... */
|
|
|
|
},
|
|
|
|
};
|