blakeblackshear.frigate/web/snowpack.config.js

36 lines
1.0 KiB
JavaScript
Raw Normal View History

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',
},
routes: [{ match: 'all', src: '(?!.*(.svg|.gif|.json|.jpg|.jpeg|.png|.js)).*', dest: '/index.html' }],
optimize: {
2021-02-07 16:33:37 +01:00
bundle: false,
minify: true,
treeshake: true,
},
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
},
};