Skip to content

Commit 5fd1bc3

Browse files
committed
feat(pwa) the whole website works offline
1 parent a0fffc7 commit 5fd1bc3

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

webpack.prod.js

+7-3
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,7 @@ const prod = {
4444
to: './assets/'
4545
},
4646
'CNAME'
47-
]),
48-
new OfflinePlugin()
47+
])
4948
]
5049
};
5150

@@ -108,6 +107,11 @@ module.exports = env => [
108107
}
109108
}),
110109
merge(common(env), prod, {
111-
target: 'web'
110+
target: 'web',
111+
plugins: [
112+
new OfflinePlugin({
113+
externals: paths
114+
})
115+
]
112116
})
113117
];

0 commit comments

Comments
 (0)