How to bundle JavaScript files in PhpStorm

779 Views Asked by At

How to combine 2 or more JavaScript files in to a one file in PhpStorm (OR WebStorm).

I've searched and found just this result but it is not an answer: Minifying JavaScript

I want something like this: Visual studio Bundler & Minifier plugin.

1

There are 1 best solutions below

1
Dmitrii On BEST ANSWER

There's no built-in feature for that in IDE. You can configure a grunt task inside IDE to concatenate files with https://github.com/gruntjs/grunt-contrib-concat See also: Combine multiple JavaScript files into one JS file and Combine and Minify Multiple CSS / JS Files