Skip to content
This repository has been archived by the owner on Jan 23, 2021. It is now read-only.

sw-precache don't work with css #360

Open
irpena opened this issue Jun 14, 2018 · 1 comment
Open

sw-precache don't work with css #360

irpena opened this issue Jun 14, 2018 · 1 comment

Comments

@irpena
Copy link

irpena commented Jun 14, 2018

Hi

The Gulp script is working correctly for me, except for a main.css file.

The project is generated with IONIC 3

sw-precache --root=www --static-file-globs='www/build/main.css'
Skipping static resource "www/build/main.css" (2.3 MB) - max size is 2.1 MB
Total precache size is about 0 B for 0 resources.
www/service-worker.js has been generated with the service worker contents.

Thanks

@bobbylej
Copy link

bobbylej commented Oct 5, 2018

I'm not sure if I properly understand @irpena, sw-precache is skipping your main.css file because it's too big and that's your problem? If I'm right, then you can change max size for files by maximumFileSizeToCacheInBytes param (in console probably it's maximum-file-size-to-cache-in-bytes).

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants