Fix Storybook

pull/2221/head
Jérémy Rialland 2022-06-30 22:12:36 +02:00 committed by Jérémy Rialland
parent 82fe30db13
commit 7935723f1f
1 changed files with 3 additions and 0 deletions

View File

@ -2,6 +2,7 @@
const { loadConfigFromFile, mergeConfig } = require('vite')
const reactPlugin = require('@vitejs/plugin-react')
const path = require('path')
const VitePWA = require('vite-plugin-pwa').VitePWA
module.exports = {
stories: [
@ -56,8 +57,10 @@ module.exports = {
// Do not treat story files as HMR boundaries, storybook itself needs to handle them.
exclude: [/\.stories\.([tj])sx?$/, /node_modules/],
}),
VitePWA({}),
],
})
return conf
},