
Compress ES6 On Intellij IDEA
2021-05-30 / Dimas Lanjaka
- Install terser locally or globally
npm i terser - Open IDEA Settings/Preferences (
CTRL+ALT+S) - click File Watchers under Tools
- Click
+SelectCustom
- Program: select path
terserbin OR typeterseronly if you installed terser globally
- Program: select path
- Arguments:
$FileDir$\$FileName$ -o $FileDir$\$FileNameWithoutExtension$.min.js -c -m --ie8
- Arguments:
- change
\to/if you using LINUX
- change
- change parameter terser from
-c-ie8as you want do
- change parameter terser from
- Output Path To Refresh:
$FileNameWithoutExtension$.min.js
- Output Path To Refresh:
- See Screenshot For Configuration


Compress ES6 On Intellij IDEA
PermaLink: https://www.webmanajemen.com/2021/05/compress-es6-on-intellij-idea.html
Google Rich Snippets | Schema Markup Validator | Google Pagespeed Insight