-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsnowpack.config.mjs
46 lines (46 loc) · 1.15 KB
/
snowpack.config.mjs
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
44
45
46
/** @type {import("snowpack").SnowpackUserConfig } */
export default {
mount: {
public: { url: '/', static: true },
src: { url: '/dist' }
},
plugins: [
'@snowpack/plugin-react-refresh',
'@snowpack/plugin-dotenv',
'@snowpack/plugin-postcss',
[
'@snowpack/plugin-typescript',
{
/* Yarn PnP workaround: see https://www.npmjs.com/package/@snowpack/plugin-typescript */
...(process.versions.pnp ? { tsc: 'yarn pnpify tsc' } : {})
}
],
[
'snowpack-custom-headers',
{
headers: {
'Cross-Origin-Embedder-Policy': 'require-corp',
'Cross-Origin-Opener-Policy': 'same-origin'
},
port: 8080
}
]
],
routes: [],
optimize: {
bundle: true,
minify: true,
target: 'es2018'
},
packageOptions: {
/* ... */
},
devOptions: {
open: 'none',
port: 9999,
tailwindConfig: './tailwind.config.js'
},
buildOptions: {
/* ... */
}
};