Add a offline mode support from a service worker. The service worker will cache the assets and the visited pages to be able to work offline. Created a fallback page for when the user is offline and tries to access a page that is not cached.
15 lines
292 B
JavaScript
15 lines
292 B
JavaScript
module.exports = {
|
|
root: true,
|
|
extends: ['impress/next'],
|
|
parserOptions: {
|
|
tsconfigRootDir: __dirname,
|
|
project: ['./tsconfig.json'],
|
|
},
|
|
settings: {
|
|
next: {
|
|
rootDir: __dirname,
|
|
},
|
|
},
|
|
ignorePatterns: ['node_modules', '.eslintrc.js', 'service-worker.js'],
|
|
};
|