0.0.3 • Published 10 years ago

gulp-flashcc-createjs-dataurl v0.0.3

Weekly downloads
1
License
MIT
Repository
github
Last release
10 years ago

gulp-flashcc-createjs-dataurl Build Status

Converted to DataURL, the images of manifest in output from Flash CC for CreateJS.

Getting Started

This plugin requires Gulp

npm install --save-dev gulp-flashcc-createjs-dataurl

Examples

Replace manifests by converted base64 assets

var gulp = require('gulp');
var flashccCreatejsDataurl = require('gulp-flashcc-createjs-dataurl');


gulp.task('convert_cjs_assets', function() {
    gulp.src('path/to/cjs/files/*.js')    
        .pipe(flashccCreatejsDataurl())
        .pipe(gulp.dest('output/dir'));
});

Create manifests.json from CreateJS files

var gulp = require('gulp');
var flashccCreatejsDataurl = require('gulp-flashcc-createjs-dataurl');

gulp.task('create_cjs_manifests', function() {
    gulp.src('path/to/cjs/files/*.js')    
        .pipe(flashccCreatejsDataurl({
            outputType: 'json' // or flashccCreatejsDataurl.OUTPUT_TYPE.JSON    
            // jsonFileSuffix: '_manifest' // if you want to change output file suffix name, specify this option.
        }))
        .pipe(gulp.dest('output/dir'));
});

Release History

  • 0.0.0: initial release.
0.0.3

10 years ago

0.0.2

10 years ago

0.0.1

10 years ago

0.0.0

10 years ago