forked from pie-inc/svelte-tailwindcss
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsnowpack.config.js
More file actions
46 lines (46 loc) · 930 Bytes
/
snowpack.config.js
File metadata and controls
46 lines (46 loc) · 930 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
44
45
46
/** @type {import("snowpack").SnowpackUserConfig } */
module.exports = {
mount: {
src: { url: '/' },
// Mount "public" to the root URL path ("/*") and serve files with zero transformations
public: { url: '/' },
},
buildOptions: {
clean: true,
out: 'dist',
},
plugins: [
[
'@snowpack/plugin-build-script',
{
cmd: 'postcss',
input: ['.css', '.pcss'],
output: ['.css'],
},
],
[
'@snowpack/plugin-svelte',
{
compilerOptions: {
hydratable: true,
css: false,
cssHash: ({ hash, css, name, filename }) => {
return `${hash(name)}`;
},
},
},
],
],
packageOptions: {},
devOptions: {},
buildOptions: {},
alias: {},
optimize: {
bundle: true,
treeshake: true,
minify: true,
manifest: true,
sourcemap: false,
target: 'es2020',
},
};