0

I follw this links link1 and link2 to compress multiple js file and store a single file. But its not working for me

I tried:

  java -jar yuicompressor-2.4.8.jar --charset utf-8  async.js  OrbitControls.js > compress.js 

But, its only compress first js file(async.js) and save to compress.js But Not Compress OrbitControls.js

I need to Compress multiple js file and save to single file , Suggest me How to do this.

Community
  • 1
  • 1
Rajkumar .E
  • 1,440
  • 3
  • 20
  • 34

1 Answers1

1

first combine the file from command windows.use type command for it in windows(same as cat command of unix)

type file1 file2 > combinedFile 

After combining the file combinedFile run it through the YUI compressor. How to write the proper command have a look in to this

Link

Zia
  • 1,001
  • 1
  • 13
  • 25