0

I'm now studying preact-cli and so far, it's working though. Problem is when we're gonna build for production, there is zero-configuration for it and found no works for api caching. Is there anyone who has had experience about it, please let me know. Thanks.

4

1 回答 1

0

是的,所有基于配置的设置preact-cli都在里面preact.config.js

你有多个插件来支持这个:https ://github.com/developit/preact-cli/wiki/Plugins

您可以对 API 的 usingservice workerspreact-cli-sw-precache进行运行时缓存。

于 2017-09-11T18:02:58.527 回答