-
-
Notifications
You must be signed in to change notification settings - Fork 17
Open
Description
I tried to pass rollup plugins to my build of injectManifest like this, which is what the type is describing:
import replace from '@rollup/plugin-replace';
import terser from '@rollup/plugin-terser';
SvelteKitPWA({
strategies: 'injectManifest',
// // this affect whether workbox output log and the bundle is minified or not
// mode: "development",
mode: "production",
registerType: "prompt",
injectManifest: {
globIgnores: ["server/**", "**/*.{css,js}"],
globPatterns: ["**/*.{ico,jpg,jpeg,png,svg,woff,woff2}"],
plugins: [
replace({
'process.env.NODE_ENV': JSON.stringify('production')
}),
terser()
]
}
})But then I get this error:
Error: [InjectManifest] 'plugins' property is not expected to be here.
I am using "@vite-pwa/sveltekit": "0.2.7",
Metadata
Metadata
Assignees
Labels
No labels