forked from pannacotta98/procedural-planet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsnowpack.config.mjs
37 lines (36 loc) · 922 Bytes
/
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
import glslify from 'snowpack-plugin-glslify';
/** @type {import("snowpack").SnowpackUserConfig } */
export default {
mount: {
public: { url: '/', static: true, dot: true },
src: { url: '/dist' },
},
plugins: [
[
'@snowpack/plugin-typescript',
{
/* Yarn PnP workaround: see https://www.npmjs.com/package/@snowpack/plugin-typescript */
...(process.versions.pnp ? { tsc: 'yarn pnpify tsc' } : {}),
},
],
['snowpack-plugin-glslify', { compress: false }], // TODO Could i compress for release only? (probably)
],
routes: [
/* Enable an SPA Fallback in development: */
// {"match": "routes", "src": ".*", "dest": "/index.html"},
],
optimize: {
/* Example: Bundle your final build: */
// "bundle": true,
},
packageOptions: {
/* ... */
},
devOptions: {
/* ... */
open: 'chrome',
},
buildOptions: {
/* ... */
},
};