mirror of
https://github.com/coder/code-server.git
synced 2025-08-01 06:23:35 +08:00
use local workbox to simplify csp
Co-Authored-By: Ian Reinhart Geiser <geiseri@geekcentral.pub>
This commit is contained in:
@ -68,6 +68,7 @@ module.exports = (options = {}) => merge(
|
|||||||
})
|
})
|
||||||
].concat(prod ? [
|
].concat(prod ? [
|
||||||
new GenerateSW({
|
new GenerateSW({
|
||||||
|
importWorkboxFrom: "local",
|
||||||
include: [cachePattern],
|
include: [cachePattern],
|
||||||
runtimeCaching: [{
|
runtimeCaching: [{
|
||||||
urlPattern: cachePattern,
|
urlPattern: cachePattern,
|
||||||
|
Reference in New Issue
Block a user