Socket
Socket
Sign inDemoInstall

cordova-plugin-exclude-files

Package Overview
Dependencies
38
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    cordova-plugin-exclude-files

A cordova plugin that allows to exclude files from the build


Version published
Weekly downloads
75
increased by114.29%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

cordova-plugin-exclude-files Travis Badge AppVeyor Badge

A cordova plugin that allows to exclude files from the build.

This plugin does not work in PhoneGap Build since they don't support cordova hooks.

Installation

cordova plugin add cordova-plugin-exclude-files

Usage

Configure which files to exclude from the build, by adding any number of <exclude-files> elements to your config.xml:

<exclude-files pattern="**/*.scss" />

<platform name="android">
    <exclude-files pattern="ios-only" />
</platform>

Patterns are globs that are resolved relative to the www directory. Platform specific excludes are appended to the global excludes.

How it works

Files that match the given patterns will be removed by an after_prepare hook. This seems to be the only safe method of doing this at the moment of writing.

This means that cordova will first copy everything from www to the platform directories and then the files matched by this plugin will be deleted from there. Consequently, you cannot speed up cordova prepare by excluding files using this plugin.

Compatibility

Requires Cordova ≥ 8, Node.js ≥ 6.

  • For Cordova < 8 use cordova-plugin-exclude-files@^0.4.2.
  • For Node.js 4 use cordova-plugin-exclude-files@^0.2.4.

License

cordova-plugin-exclude-files is licensed under the MIT License.

Copyright (c) 2017–2018 Raphael von der Grün

Keywords

FAQs

Last updated on 06 Apr 2020

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc