title: Using terser or alternative to minify and uglify js files
body: <p>I have a simple web project with one big javascript file (ES6)
  i want to minify and uglify it so it will be harder for others to obtain it</p>
  
  <p>After a bit of searching i found <a href="https://github.com/terser/terser" rel="nofollow noreferrer">terser</a></p>
  
  <p>and i've been using it in the following way</p>
  
  <pre><code>terser originalFile.js --compress --mangle --output result.min.js
  </code></pre>
  
  <p>when i come to examine the output file created i do notice that its minified (no white spaces) but its not uglified in fact doing auto format to it returns it to the original and readable state</p>
  
  <p>how can i uglify my file without using webpacks or anything like this</p>
  
  <p>Thanks</p>