Merge/Combine multiple CSS files into one using PHPStorm Follow
I'm trying to figure out a way how to combine multiple css files (from same directory) into one.. and simply have it,every time CSS file is updated..it does a new combine automatically...
Is there some easy/normal solution?
Please sign in to leave a comment.
Normally such stuff is handled by the task runners/build systems. E.g. webpack/npm script/grunt/gulp -- you define such "combine" task there and let it do that for you (with a plugin/task for that runner or custom code if so desired).
IDE has support for calling npm script/gulp/grunt tasks from dedicated tool window in IDE (so you can run it manually when needed).
For automated stuff (i.e. execute combine task when one of the included files get modified) you can use File Watcher -- it ill execute your command once such modification is detected.