Skip to content
This repository has been archived by the owner on Nov 26, 2024. It is now read-only.

Commit

Permalink
feat(service-worker): works offline
Browse files Browse the repository at this point in the history
  • Loading branch information
cedricpoon committed Oct 23, 2024
1 parent 4edf92e commit 42abb59
Show file tree
Hide file tree
Showing 7 changed files with 1,020 additions and 151 deletions.
14 changes: 14 additions & 0 deletions craco.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
const WorkboxWebpackPlugin = require('workbox-webpack-plugin');

module.exports = {
webpack: {
plugins: {
add: [
new WorkboxWebpackPlugin.InjectManifest({
swSrc: './public/service-worker.js',
swDest: 'service-worker.js',
}),
],
},
},
};
Loading

0 comments on commit 42abb59

Please sign in to comment.