Quasar CLI with Vite - @quasar/app-vite
PWA 构建命令
开发(Developing)
¥Developing
$ quasar dev -m pwa
# ..or the longer form:
$ quasar dev --mode pwa
content_paste
警告
开发服务器使用最低限度的 Service Worker 预缓存公共文件夹。将无法离线工作。
¥The development server uses a bare minimum Service Worker precaching only the public folder. Working offline will not be available.
危险
请勿在你的开发版本上运行 Lighthouse,因为在此阶段,代码故意未进行优化,并且包含嵌入的源映射(以及许多其他内容)。
¥Do not run Lighthouse on your development build because at this stage the code is intentionally not optimized and contains embedded source maps (among many other things).
生产环境构建(Building for Production)
¥Building for Production
$ quasar build -m pwa
# ..or the longer form:
$ quasar build --mode pwa
content_paste
如果你想要一个启用了调试功能的正式版:
¥If you want a production build with debugging enabled:
$ quasar build -m pwa -d
# ..or the longer form
$ quasar build -m pwa --debug
content_paste