2021-01-09 18:26:46 +01:00
|
|
|
module.exports = {
|
|
|
|
mount: {
|
|
|
|
public: { url: '/', static: true },
|
|
|
|
src: { url: '/dist' },
|
|
|
|
},
|
2022-02-26 20:11:00 +01:00
|
|
|
plugins: ['@prefresh/snowpack', '@snowpack/plugin-typescript', '@snowpack/plugin-postcss', 'snowpack-plugin-hash'],
|
|
|
|
devOptions: {
|
|
|
|
tailwindConfig: './tailwind.config.js',
|
|
|
|
},
|
2021-06-10 21:02:43 +02:00
|
|
|
routes: [{ match: 'all', src: '(?!.*(.svg|.gif|.json|.jpg|.jpeg|.png|.js)).*', dest: '/index.html' }],
|
2021-02-05 17:07:24 +01:00
|
|
|
optimize: {
|
2021-02-07 16:33:37 +01:00
|
|
|
bundle: false,
|
2021-02-05 17:07:24 +01:00
|
|
|
minify: true,
|
|
|
|
treeshake: true,
|
|
|
|
},
|
2021-01-16 19:12:39 +01:00
|
|
|
packageOptions: {
|
2022-02-26 20:11:00 +01:00
|
|
|
knownEntrypoints: [
|
|
|
|
'@videojs/vhs-utils/es/stream.js',
|
|
|
|
'@videojs/vhs-utils/es/resolve-url.js',
|
|
|
|
'@videojs/vhs-utils/es/media-types.js',
|
|
|
|
'@videojs/vhs-utils/es/decode-b64-to-uint8-array.js',
|
|
|
|
'@videojs/vhs-utils/es/id3-helpers',
|
|
|
|
'@videojs/vhs-utils/es/byte-helpers',
|
|
|
|
'@videojs/vhs-utils/es/containers',
|
|
|
|
'@videojs/vhs-utils/es/codecs.js',
|
|
|
|
'global/window',
|
|
|
|
'global/document',
|
|
|
|
],
|
2021-01-09 18:26:46 +01:00
|
|
|
},
|
2022-02-26 20:11:00 +01:00
|
|
|
buildOptions: {},
|
|
|
|
alias: {
|
|
|
|
react: 'preact/compat',
|
|
|
|
'react-dom': 'preact/compat',
|
2021-01-09 18:26:46 +01:00
|
|
|
},
|
|
|
|
};
|