mirror of
https://github.com/eliasstepanik/strudel.git
synced 2026-01-11 13:48:40 +00:00
42 lines
1.0 KiB
JavaScript
42 lines
1.0 KiB
JavaScript
/** @type {import("snowpack").SnowpackUserConfig } */
|
|
export default {
|
|
workspaceRoot: '..',
|
|
mount: {
|
|
public: { url: '/', static: false },
|
|
src: { url: '/dist' },
|
|
},
|
|
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"},
|
|
],
|
|
exclude: ['**/node_modules/**/*', '**/tutorial/**/*'],
|
|
optimize: {
|
|
/* Example: Bundle your final build: */
|
|
// "bundle": true,
|
|
},
|
|
packageOptions: {
|
|
/* ... */
|
|
knownEntrypoints: ['fraction.js', 'codemirror', 'shift-ast', 'ramda'],
|
|
},
|
|
devOptions: {
|
|
tailwindConfig: './tailwind.config.js',
|
|
},
|
|
buildOptions: {
|
|
/* ... */
|
|
out: '../docs',
|
|
baseUrl: '/',
|
|
},
|
|
};
|