mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 11:35:04 +01:00
36 lines
803 B
JavaScript
36 lines
803 B
JavaScript
// 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: {
|
|
/* ... */
|
|
external: [
|
|
/* Olm seems to import these but not use them. */
|
|
"path",
|
|
"crypto",
|
|
"fs",
|
|
],
|
|
},
|
|
devOptions: {
|
|
open: "none",
|
|
/* ... */
|
|
},
|
|
buildOptions: {
|
|
/* ... */
|
|
},
|
|
};
|