stateface | A typeface of U.S. state shapes to use in web apps | User Interface library
kandi X-RAY | stateface Summary
kandi X-RAY | stateface Summary
A font you can use in your web apps when you want tiny state shapes as a design element. Documentation.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of stateface
stateface Key Features
stateface Examples and Code Snippets
Community Discussions
Trending Discussions on stateface
QUESTION
TLDR: It seems that one of the chunk js files generated by Create React App is not being included in the serviceworker.
We have what I believe is a pretty vanilla Create React App (version 4.0.3) configuration with the serviceworker turned on. When I do a build ( with npm run build), it creates a build/static/js folder with two chunk files: a main chunk file (i.e. main.9c46d9a1.chunk.js) and a 2.* chunk js file (i.e. 2.ab51bb70.chunk.js). In the asset-manifest.json file that gets generated they are listed like this:
- "main.js": "./static/js/main.9c46d9a1.chunk.js",
- "static/js/2.ab51bb70.chunk.js": "./static/js/2.ab51bb70.chunk.js",
I've added logging in service-worker.ts to spin through self.__WB_MANIFEST and print out the URL's from all of the PrecacheEntry objects. When I load the app in the browser, the serviceWorker gets loaded, and it prints this:
...ANSWER
Answered 2021-May-05 at 14:41The maximumFileSizeToCacheInBytes
configuration option might be at play here. In c-r-a
, it's set to 5mb, so if your chunk is larger than 5mb, it will be excluded from the list of assets to precache.
There should be a warning message logged as part of your webpack
build process if that's happening, explaining what the current limit is and which assets exceed that limit.
Finding a way to decrease the size of the chunk is the best approach, and huge chunks aren't a great user experience to begin with. But if you can't reduce the chunk size, then ejecting and modifying the maximumFileSizeToCacheInBytes
configuration in the InjectManifest
webpack
plugin configuration is your other option.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install stateface
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page