2020-12-12 13:19:55 +00:00
|
|
|
/** @type {import("snowpack").SnowpackUserConfig } */
|
|
|
|
module.exports = {
|
|
|
|
mount: {
|
2020-12-12 20:29:33 +00:00
|
|
|
"web/": '/'
|
2020-12-12 13:19:55 +00:00
|
|
|
},
|
|
|
|
plugins: [
|
2020-12-12 20:29:33 +00:00
|
|
|
'@prefresh/snowpack',
|
2022-04-08 16:16:12 +01:00
|
|
|
'@snowpack/plugin-sass',
|
2020-12-12 20:29:33 +00:00
|
|
|
['@snowpack/plugin-typescript', '--project tsconfig.web.json'],
|
2020-12-12 13:19:55 +00:00
|
|
|
],
|
2021-04-11 15:18:49 +01:00
|
|
|
packageOptions: {
|
2020-12-12 13:19:55 +00:00
|
|
|
installTypes: true,
|
2020-12-12 20:29:33 +00:00
|
|
|
polyfillNode: true,
|
2020-12-12 13:19:55 +00:00
|
|
|
},
|
|
|
|
buildOptions: {
|
2022-04-08 16:16:12 +01:00
|
|
|
out: 'public',
|
2020-12-12 13:19:55 +00:00
|
|
|
},
|
2022-04-08 16:16:12 +01:00
|
|
|
alias: {
|
|
|
|
"react": "preact/compat",
|
|
|
|
"react-dom/test-utils": "preact/test-utils",
|
|
|
|
"react-dom": "preact/compat",
|
|
|
|
"react/jsx-runtime": "preact/jsx-runtime",
|
|
|
|
}
|
|
|
|
};
|
2020-12-12 13:19:55 +00:00
|
|
|
|