add vite-plugin-bundle-audioworklet and use it both from website and superdough
This commit is contained in:
parent
7bec92ca99
commit
fdbbcd2dd2
7 changed files with 44 additions and 8 deletions
|
|
@ -5,6 +5,7 @@ import remarkToc from 'remark-toc';
|
|||
import rehypeSlug from 'rehype-slug';
|
||||
import rehypeAutolinkHeadings from 'rehype-autolink-headings';
|
||||
import rehypeUrls from 'rehype-urls';
|
||||
import bundleAudioWorkletPlugin from 'vite-plugin-bundle-audioworklet';
|
||||
|
||||
import tailwind from '@astrojs/tailwind';
|
||||
import AstroPWA from '@vite-pwa/astro';
|
||||
|
|
@ -134,6 +135,7 @@ export default defineConfig({
|
|||
site,
|
||||
base,
|
||||
vite: {
|
||||
plugins: [bundleAudioWorkletPlugin()],
|
||||
ssr: {
|
||||
// Example: Force a broken package to skip SSR processing, if needed
|
||||
// external: ['fraction.js'], // https://github.com/infusion/Fraction.js/issues/51
|
||||
|
|
|
|||
|
|
@ -73,6 +73,7 @@
|
|||
"@vite-pwa/astro": "^0.5.0",
|
||||
"html-escaper": "^3.0.3",
|
||||
"sharp": "^0.33.5",
|
||||
"workbox-window": "^7.3.0"
|
||||
"workbox-window": "^7.3.0",
|
||||
"vite-plugin-bundle-audioworklet": "workspace:*"
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue