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

Comments

Popular posts from this blog

Install deb package via Termux

How to Make Blogger Safelink Converter v3

List of weapon buff materials, effects and how it can be durango wild lands