Preact-cli: To turn off the service worker

Created on 12 Apr 2020  路  3Comments  路  Source: preactjs/preact-cli

I don't need a service worker, how do I turn it off? I use preact-cli 2.2.1

ServiceWorker question

Most helpful comment

"build": "preact build --no-sw --no-ssr --no-esm --no-inline-css",

Good job!

All 3 comments

Right from the ReadMe:

You can disable default: true flags by prefixing them with --no-

--sw Generate and attach a Service Worker (default true)

@RyanChristian4427 thanks!

"build": "preact build --no-sw --no-ssr --no-esm --no-inline-css",

Good job!

Was this page helpful?
0 / 5 - 0 ratings