0.0.7 • Published 8 years ago

gobem-proc-prettydiff v0.0.7

Weekly downloads
1
License
GPL-3.0
Repository
github
Last release
8 years ago

gobem-proc-prettydiff

This processor for gobem minifies files using prettydiff. All options are passed as a single object. Empty files are just skipped during processing. gobem-proc-prettydiff requires directory to cache results of the work.

The following options are supported:

  • ignoreErrors\ If this flag is true and error occured, raw file's content will be written instead minified one.
  • cacheDir\ Full path to a readable and writable directory to cache files.

Also there is one useful feature: if you don't want to minify some specific file, just add one of the following lines into any place:

  • / prevent prettydiff /
  • // prevent prettydiff
  • 'prevent prettydiff';
  • "prevent prettydiff";

Example for build.js

module.exports = function () {
    return [
        ['select', 0, /^components\/(\w+)\/\1\.es2015.js$/],
        ['gobem-proc-prettydiff', {ignoreErrors: true}],
        ['write', 1]
    ]; // this array will be used as build instructions
};
0.0.7

8 years ago

0.0.6

8 years ago

0.0.5

8 years ago

0.0.4

8 years ago

0.0.3

9 years ago

0.0.2

9 years ago

0.0.1

9 years ago