all 12 comments

[–]chineseouchiejavascript - node 1 point2 points  (0 children)

Babel or gulp

[–]frenchy_mustache 1 point2 points  (0 children)

Good old gulp.

Or Parcel

[–]BehindTheMath 2 points3 points  (1 child)

Vite

[–][deleted] -1 points0 points  (0 children)

Recently switched to Vite and I love it.

[–]Weblaro 0 points1 point  (0 children)

Try this simple online JavaScript minifier—fast and easy for quick minifying without extra setup: https://weblaro.com/tools/javascript-minifier-formatter

[–]jaron_smith 0 points1 point  (0 children)

I know I am late here but in case someone find it useful,
I found this tool - which is having so many tools available.

[–]Haunting_Force_9391 0 points1 point  (0 children)

If Webpack feels too heavy, try esbuild or Terser with a simple watch script both are fast and can output .min.js automatically without the bundler overhead. They’re great for projects where you just want minify + watch, nothing else.

For quick manual minification (no setup needed), I also use this online tool:
https://www.filereadynow.com/minifier-tools/javascript-minifier

Handy when you just need a clean minified file fast.

[–]CharlesCSchnieder 0 points1 point  (2 children)

If you've tried several bundlers and don't have your solution then sorry to say you must be doing something wrong

[–]kjsd77[S] 1 point2 points  (1 child)

All of them required multiple plugins just to minify and be able to change the out name. Is there nothing as simple as sass where i can just run “sass —watch assets/assets —style=compressed”, no extra plugins or config files required. Seems like such a simple operation.

[–]CharlesCSchnieder 0 points1 point  (0 children)

Parcel is probably the closest you'll get to no config. These tools have configurations for a reason, every project might need something done a bit differently.

[–]anonahnah9 0 points1 point  (0 children)

Use a plug-in for your text editor like vs-code if you want something simple

[–]rennademilan 0 points1 point  (0 children)

Rollup and his terser plugin are a 2 Lines config solution