-
Notifications
You must be signed in to change notification settings - Fork 0
/
snowpack.config.js
41 lines (40 loc) · 904 Bytes
/
snowpack.config.js
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
// Snowpack Configuration File
// See all supported options: https://www.snowpack.dev/#configuration
/** @type {import("snowpack").SnowpackUserConfig } */
module.exports = {
mount: {
frontend: "/dist",
".bridgetown": { url: "/", static: true },
output: { url: "/", static: true, resolve: false },
},
plugins: [
[
"@snowpack/plugin-run-script",
{
name: "bridgetown",
cmd: "bin/bridgetown build",
watch: "$1 --watch --quiet",
},
],
"@snowpack/plugin-postcss",
],
devOptions: {
port: 4000,
hmrDelay: 1000,
open: "none",
},
buildOptions: {
metaUrlPath: "output/dist/javascript",
out: "output"
},
optimize: {
entrypoints: ["dist/javascript/index.js"],
preload: false,
bundle: true,
splitting: false,
treeshake: true,
minify: true,
manifest: true,
target: "es2018",
},
}