mirror of
https://github.com/facebook/docusaurus.git
synced 2025-06-06 04:42:40 +02:00
chore(deps): bump webpack from 5.88.1 to 5.94.0 (#10455)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: sebastien <lorber.sebastien@gmail.com>
This commit is contained in:
parent
02ed7d9132
commit
200b38b763
5 changed files with 103 additions and 98 deletions
|
@ -92,15 +92,20 @@ export default function pluginPWA(
|
|||
configureWebpack(config) {
|
||||
return {
|
||||
plugins: [
|
||||
new webpack.EnvironmentPlugin({
|
||||
PWA_DEBUG: debug,
|
||||
PWA_SERVICE_WORKER_URL: path.posix.resolve(
|
||||
`${(config.output?.publicPath as string) || '/'}`,
|
||||
'sw.js',
|
||||
),
|
||||
PWA_OFFLINE_MODE_ACTIVATION_STRATEGIES:
|
||||
offlineModeActivationStrategies,
|
||||
}),
|
||||
new webpack.EnvironmentPlugin(
|
||||
// See https://github.com/facebook/docusaurus/pull/10455#issuecomment-2317593528
|
||||
// See https://github.com/webpack/webpack/commit/adf2a6b7c6077fd806ea0e378c1450cccecc9ed0#r145989788
|
||||
// @ts-expect-error: bad Webpack type?
|
||||
{
|
||||
PWA_DEBUG: debug,
|
||||
PWA_SERVICE_WORKER_URL: path.posix.resolve(
|
||||
`${(config.output?.publicPath as string) || '/'}`,
|
||||
'sw.js',
|
||||
),
|
||||
PWA_OFFLINE_MODE_ACTIVATION_STRATEGIES:
|
||||
offlineModeActivationStrategies,
|
||||
},
|
||||
),
|
||||
],
|
||||
};
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue