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

Commit

Permalink
build: update packages
Browse files Browse the repository at this point in the history
  • Loading branch information
zerosoul committed Feb 4, 2020
1 parent 54cf5c0 commit 9b91f3e
Show file tree
Hide file tree
Showing 4 changed files with 2,603 additions and 2,007 deletions.
2 changes: 1 addition & 1 deletion .lintstagedrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"src/**/*.{js,jsx}": ["eslint --fix", "git add"]
"src/**/*.{js,jsx}": ["eslint --fix"]
}
3 changes: 1 addition & 2 deletions config/webpack.config.prod.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ module.exports = merge(commonConfig, {
new GenerateSW({
clientsClaim: true,
exclude: [/\.map$/, /asset-manifest\.json$/, /\.(?:png|jpg|jpeg|svg)$/, /\.js$/],
importWorkboxFrom: 'local',
navigateFallback: 'index.html',
//定义运行时缓存(可接受多个json对象)
runtimeCaching: [
Expand Down Expand Up @@ -124,7 +123,7 @@ module.exports = merge(commonConfig, {
}
}
],
navigateFallbackBlacklist: [
navigateFallbackDenylist: [
// Exclude URLs starting with /_, as they're likely an API call
new RegExp('^/_'),
// Exclude any URLs whose last part seems to be a file extension
Expand Down
Loading

0 comments on commit 9b91f3e

Please sign in to comment.