pixijs / pixify

Browserify bundle process for PIXI libraries

Home Page:https://www.npmjs.com/package/pixify

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Bug] Can't build uncompress file in 1.8.0

finscn opened this issue · comments

When I build the file ( not use the new argument compress or no-compress) , the two files are both compressed.

I use the default command line for building : npm run build

If use --no-compress , the one file pixi.js is correct.

I found the reason :
args.compress is conflict with pixify.options.compress
after https://github.com/pixijs/pixify/blob/master/index.js#L61

    options = Object.assign({}, options, args);

if args.compress == true , the options.compress always == true.

Sorry, I don't test extensively before pull a PR.

I'll fix it as soon as possible.

I found @bigtimebuddy has changed compress to minify ,
Then I update & test , everything is OK.