Fix Storybook
parent
82fe30db13
commit
7935723f1f
|
@ -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
|
||||
},
|
||||
|
||||
|
|
Loading…
Reference in New Issue