diff --git a/site/.storybook/main.cjs b/site/.storybook/main.cjs index 5de8c7a58..28d7fc0f7 100644 --- a/site/.storybook/main.cjs +++ b/site/.storybook/main.cjs @@ -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 },