Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@marsjs/vue-cli-plugin-pwa

Package Overview
Dependencies
Maintainers
4
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@marsjs/vue-cli-plugin-pwa

mars pwa plugin for vue cli

  • 0.0.3
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
12
increased by140%
Maintainers
4
Weekly downloads
 
Created
Source

@marsjs/vue-cli-plugin-pwa

pwa plugin for vue-cli

To get pwa configuration and pass them to webpack plugin mars-pwa-webpack-plugin. The webpack Plugin generates the cache whiteManifestList and blackManifestList

Configuration

Configuration is handled via the pwa property of the vue.config.js file

  • pwa.include If you want to cache some type of file, you can use it. If you ignore this, the default value of it is [ /\.html$/, /\.jpg$/, /\.png$/, /\.css$/, /\.js$/]

  • pwa.exclude If you dont want to cache some api or some type of file, or some file specified, you can use this param

  • pwa.versiob This param is intended to generate the service worker cachename. The cache name is MARS_PWA_CACHE-${api.service.pkg.name}-${options.pwa.version} When you changed the pwa options, you may supply the version

Example Configuration

// Inside vue.config.js
module.exports = {
  // ...other vue-cli plugin options...
    pwa: {
        include: [ /\.html$/, /\.jpg$/, /\.png$/, /\.css$/, /\.js$/], 
        version: '1-1-4', // part of cacheName
        exclude: ['app.css'] 
    },
}

Keywords

FAQs

Package last updated on 29 May 2019

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc