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',
|
|
|
|
],
|
|
|
|
install: [
|
|
|
|
/* ... */
|
|
|
|
],
|
|
|
|
installOptions: {
|
|
|
|
installTypes: true,
|
|
|
|
packageLookupFields: ['svelte', 'module', 'main'],
|
|
|
|
//rollup: { plugins: [require('rollup-plugin-svelte')()] },
|
|
|
|
},
|
|
|
|
devOptions: {
|
2021-01-08 17:36:28 +01:00
|
|
|
port: 3005,
|
2021-01-03 14:18:22 +01:00
|
|
|
},
|
|
|
|
buildOptions: {
|
|
|
|
/* ... */
|
|
|
|
},
|
|
|
|
proxy: {
|
|
|
|
/* ... */
|
|
|
|
},
|
|
|
|
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
|
|
|
},
|
|
|
|
};
|