Thanks to Christopher Eppstein for showing me how this works. If File.exists?(file) & File.basename(file) = "style.css"įileUtils.mv(file, File.dirname(file) + "/./" + File.basename(file)) You can also use project wide output options to adjust output path for all Less files. Change Output Destination Click the output path on the file options sidebar to manually change the output path of a file. The puts statement is just so you can watch it work from the command line if you want. You can configure Less from Project Settings -> CSS Tools -> Less. In our case, when a stylesheet is saved (Compass is done compiling it) we check if that file is named “style.css” and if it is, move it up a directory.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |