如何使用Eclipse JSDT(JavaScript开发工具)“构建” *.min.js
和*.min.js.map
文件?
You can use an external builder to run build scripts for your Javascript tasks.
Go to Project --> Properties and choose Builders. Then you can add an external builder to launch an external program with whatever arguments you need.
You can se the builder to run automatically by using the Build Options tab and setting the "Run The Builder:" options:
I use YUICompressor . It works on both JavaScript and CSS. Once it's installed, it's easy to use:
Unfortunately, you will need to manually run the compressor every time you change the original file, which can get tedious if you're working with lots of files. If you want to automate the process, see this answer . I ended up writing a quick batch script for my project.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.