2021-03-19 21:17:38 +00:00
|
|
|
/** @type {import("snowpack").SnowpackUserConfig } */
|
|
|
|
module.exports = {
|
2021-03-21 23:16:18 +00:00
|
|
|
|
2021-03-19 21:17:38 +00:00
|
|
|
mount: {
|
|
|
|
public: '/',
|
|
|
|
//src: '/_dist_',
|
|
|
|
},
|
|
|
|
plugins: [
|
|
|
|
[
|
|
|
|
'@snowpack/plugin-sass', { compilerOptions: { style: 'compressed' } },
|
|
|
|
],
|
|
|
|
'@snowpack/plugin-svelte',
|
|
|
|
'@snowpack/plugin-vue'
|
|
|
|
],
|
|
|
|
packageOptions: {
|
2021-03-21 23:16:18 +00:00
|
|
|
external: [
|
|
|
|
'node-fetch'
|
|
|
|
]
|
2021-03-19 21:17:38 +00:00
|
|
|
},
|
|
|
|
devOptions: {
|
|
|
|
// Eleventy updates multiple files at once, so add a 1000ms delay before we trigger a browser update
|
|
|
|
hmrDelay: 1000,
|
|
|
|
},
|
|
|
|
buildOptions: {
|
|
|
|
out: '_site',
|
|
|
|
},
|
|
|
|
optimize: {
|
|
|
|
bundle: true,
|
|
|
|
minify: true,
|
|
|
|
target: 'es2018',
|
|
|
|
},
|
|
|
|
};
|