Latest Socket ResearchMalicious Chrome Extension Performs Hidden Affiliate Hijacking.Details
Socket
Book a DemoInstallSign in
Socket

fly-precache

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fly-precache

Generate service worker code to precache specific resources.

Source
npmnpm
Version
0.0.2
Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

Precache plugin for Fly.

npm package [][mit]

Usage

Check out the documentation to see the available options.

Install

npm install -D fly-precache

Example

export default function* () {
  yield this
    .source('dist/**/*.{js,html,css,png,jpg,gif}')
    .precache({
      cacheID: 'fly-starter-kit',
      rootPath: 'dist',
      outputFile: 'service-worker.js',
      stripPrefix: true
    })
    .target('dist')
}

License

MIT © Luke Edwards

Keywords

fly

FAQs

Package last updated on 07 Feb 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts