-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsnowpack.config.js
More file actions
43 lines (43 loc) · 949 Bytes
/
snowpack.config.js
File metadata and controls
43 lines (43 loc) · 949 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
// Consult https://www.snowpack.dev to learn about these options
module.exports = {
install: ["svelte"],
installOptions: {
// ignore `import fs from 'fs'` etc
externalPackage: [
...require("module").builtinModules,
...Object.keys(require("./package.json").dependencies),
],
},
plugins: [
[
"@snowpack/plugin-svelte",
{
compilerOptions: {
hydratable: true,
},
hmrOptions: {
preserveState: true,
},
},
],
"@snowpack/plugin-typescript",
[
"@snowpack/plugin-build-script",
{ cmd: "postcss", input: [".css", ".pcss"], output: [".css"] },
],
],
devOptions: {
open: "none",
},
buildOptions: {
sourceMaps: true,
},
mount: {
".svelte/assets": "/_app/assets",
"src/components": "/_components",
},
alias: {
$app: "./.svelte/assets/runtime/app",
$components: "./src/components",
},
};