Compress ES6 On Intellij IDEA

  • Install terser locally or globally npm i terser
  • Open IDEA Settings/Preferences (CTRL+ALT+S)
  • click File Watchers under Tools
  • Click + Select Custom Add Custom Template
    • Program: select path terser bin OR type terser only if you installed terser globally
    • Arguments: $FileDir$\$FileName$ -o $FileDir$\$FileNameWithoutExtension$.min.js -c -m --ie8
      • change \ to / if you using LINUX
      • change parameter terser from -c - ie8 as you want do
    • Output Path To Refresh: $FileNameWithoutExtension$.min.js
  • See Screenshot For Configuration Configuration 1 Detailed Arguments

0 Response to "Compress ES6 On Intellij IDEA"

Post a Comment

Bila Ada posting yang kurang, atau error atau yang lainnya, silahkan tinggalkan komentar agar artikel/post di perbaiki.
Jangan Lupa Cek Box "Notify Me" agar tahu komentar kamu dibalas oleh saya.

If there are any posts that are missing, or error or anything else, please leave a comment for the article / post to be fixed.
Do not Forget Check Box "Notify Me" to know our comments replied by me.

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel