mirror of
https://github.com/meshtastic/web.git
synced 2026-02-08 06:41:49 -05:00
42 lines
916 B
JavaScript
42 lines
916 B
JavaScript
/** @type {import("snowpack").SnowpackUserConfig } */
|
|
module.exports = {
|
|
mount: {
|
|
public: { url: '/', static: true },
|
|
src: { url: '/static' },
|
|
},
|
|
plugins: [
|
|
'@snowpack/plugin-postcss',
|
|
'@snowpack/plugin-react-refresh',
|
|
'@snowpack/plugin-dotenv',
|
|
[
|
|
'@snowpack/plugin-typescript',
|
|
{
|
|
/* Yarn PnP workaround: see https://www.npmjs.com/package/@snowpack/plugin-typescript */
|
|
...(process.versions.pnp ? { tsc: 'yarn pnpify tsc' } : {}),
|
|
},
|
|
],
|
|
],
|
|
routes: [
|
|
/* Enable an SPA Fallback in development: */
|
|
// {"match": "routes", "src": ".*", "dest": "/index.html"},
|
|
],
|
|
optimize: {
|
|
bundle: true,
|
|
sourcemap: false,
|
|
splitting: true,
|
|
treeshake: true,
|
|
manifest: false,
|
|
minify: true,
|
|
target: 'es2020',
|
|
},
|
|
packageOptions: {
|
|
/* ... */
|
|
},
|
|
devOptions: {
|
|
/* ... */
|
|
},
|
|
buildOptions: {
|
|
/* ... */
|
|
},
|
|
};
|