Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Pleroma
mastofe
Commits
d106994f
Verified
Commit
d106994f
authored
Aug 12, 2018
by
Haelwenn
Browse files
config/webpack/production.js: Remove caching in OfflinePlugin (introduced in
0692991b
)
parent
e365d3f3
Changes
1
Hide whitespace changes
Inline
Side-by-side
config/webpack/production.js
View file @
d106994f
...
...
@@ -46,23 +46,7 @@ module.exports = merge(sharedConfig, {
plugins
:
[
new
OfflinePlugin
({
publicPath
:
output
.
publicPath
,
// sw.js must be served from the root to avoid scope issues
safeToUseOptionalCaches
:
true
,
caches
:
{
main
:
[
'
:rest:
'
],
additional
:
[
'
:externals:
'
],
optional
:
[
'
**/locale_*.js
'
,
// don't fetch every locale; the user only needs one
'
**/*_polyfills-*.js
'
,
// the user may not need polyfills
'
**/*.woff2
'
,
// the user may have system-fonts enabled
// images/audio can be cached on-demand
'
**/*.png
'
,
'
**/*.jpg
'
,
'
**/*.jpeg
'
,
'
**/*.svg
'
,
'
**/*.mp3
'
,
'
**/*.ogg
'
,
],
},
caches
:
{},
externals
:
[
'
/emoji/1f602.svg
'
,
// used for emoji picker dropdown
'
/emoji/sheet_10.png
'
,
// used in emoji-mart
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment