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