hookshot/snowpack.config.js

25 lines
599 B
JavaScript
Raw Normal View History

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',
'@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: {
out: 'public',
2020-12-12 13:19:55 +00: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