2021-01-03 14:18:22 +01:00
|
|
|
/** @type {import("snowpack").SnowpackUserConfig } */
|
|
|
|
module.exports = {
|
|
|
|
mount: {
|
|
|
|
public: { url: '/', static: true },
|
|
|
|
src: { url: '/dist' },
|
2021-01-04 23:02:31 +01:00
|
|
|
'../core/src': { url: '/core' },
|
2021-01-08 17:37:19 +01:00
|
|
|
'node_modules/pdfjs-dist/build/': { url: '/worker', static: true },
|
2021-01-03 14:18:22 +01:00
|
|
|
},
|
|
|
|
plugins: [
|
|
|
|
['@snowpack/plugin-build-script', { cmd: 'postcss', input: ['.css'], output: ['.css'] }],
|
|
|
|
'@snowpack/plugin-svelte',
|
|
|
|
'@snowpack/plugin-dotenv',
|
|
|
|
'@snowpack/plugin-typescript',
|
|
|
|
],
|
2021-02-28 18:57:06 +01:00
|
|
|
packageOptions: {
|
2021-01-03 14:18:22 +01:00
|
|
|
installTypes: true,
|
|
|
|
packageLookupFields: ['svelte', 'module', 'main'],
|
2021-02-28 18:57:06 +01:00
|
|
|
// rollup: { plugins: [require('rollup-plugin-svelte')()] },
|
2021-01-03 14:18:22 +01:00
|
|
|
},
|
|
|
|
devOptions: {
|
2021-01-08 17:36:28 +01:00
|
|
|
port: 3005,
|
2021-01-03 14:18:22 +01:00
|
|
|
},
|
|
|
|
buildOptions: {
|
|
|
|
/* ... */
|
|
|
|
},
|
|
|
|
alias: {
|
2021-01-04 23:02:31 +01:00
|
|
|
'@core': '../core/src/index.js',
|
2021-01-12 22:54:22 +01:00
|
|
|
'@core/*': '../core/src/*',
|
2021-01-03 14:18:22 +01:00
|
|
|
},
|
|
|
|
};
|