Check out SublimeOnSaveBuild. All you need to do is set up a build system like SASS Build, LESS-build, Nodejs, etc., or your own custom build system, so that it's working without intervention when you press CtrlB. Then, enter the particulars into SublimeOnSaveBuild's config file (which allows you to filter by file extension, so you only trigger it when saving .sass
files, for example) and you're all set - the build will trigger each time you save a file with the specified extension.
To set up the config file, first open Preferences → Package Settings → SublimeOnSaveBuild → Settings - Default
, and copy the entire contents. Close the file, and paste the contents into Preferences → Package Settings → SublimeOnSaveBuild → Settings - User
, customizing anything you wish. Save the file, and things should proceed automagically from there. Setting "build_on_save": 0
will disable the plugin.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…