Sublime Forum

Aliases for compiled/generated files (LESS, JS, etc)

#1

I’m not sure if this would be possible using a build system, or if it’s specific to the SFTP plugin, but I think it’s a common workflow for web developers.

I edit LESS and JS files. In the background, a separate app is compiling/minifying/concatenating those files into separate .css and .min.js files. I don’t touch those generated files directly, but they’re the ones I want to upload to the server.

I would like to be able to do the following:

  1. A file, ~/project/less/foo.less, is open and active in Sublime
  2. I hit a key to upload it to the server
  3. Its compliment file, ~/project/css/foo.css, is uploaded instead

This would save me from having to manually open or locate the CSS file separately just to upload it. The pattern could be extended to a lot of other languages and workflows.

0 Likes