Skip to content

Commit 53fc2bd

Browse files
committed
feat(pwa) offline works for home and for other pages
1 parent 30b4db3 commit 53fc2bd

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

webpack.prod.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,13 @@ module.exports = env => merge(common(env), {
2121
},
2222
plugins: [
2323
new OfflinePlugin({
24+
publicPath: '/',
2425
externals: ['/', ...cssFiles],
26+
appShell: '/index.html',
27+
excludes: [],
2528
AppCache: {
26-
FALLBACK: { '/': '/index.html' }
29+
publicPath: '/',
30+
FALLBACK: { '/': './dist/index.html' }
2731
}
2832
})
2933
]

0 commit comments

Comments
 (0)