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

gulp-cocoscreator-rev

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gulp-cocoscreator-rev

对CocosCreator构建后的资源进行版本化(md5)处理。

  • 1.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
3
decreased by-25%
Maintainers
1
Weekly downloads
 
Created
Source

gulp-cocoscreator-rev

对CocosCreator构建后的资源进行版本化(md5)处理。

Install

npm install gulp-cocoscreator-rev --save-dev

Example

gulpfile.js

const cocosRev = require('gulp-cocoscreator-rev');

gulp.task('rev-cocoscreator', cocosRev({
    src: './build/web-mobile',
    dest: './dist/cdn',
    settingsDest: './src/js/settings.js'
}));

options

Type: Object

options.src

Type: String Required: true

使用CocosCreator构建之后生成的文件夹,通常其下还有ressrc两个文件夹。

options.dest

Type: String Required: true

将图片等资源文件和json进行md5之后归档到新的路径。

options.settingsDest

Type: String Required: true

生成的新的settings.js文件存放路径,因为该文件记录了版本化后的资源名,所以也会一起修改。

Keywords

FAQs

Package last updated on 05 Feb 2017

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