Run Compass/SASS with a different version

眉间皱痕 提交于 2019-12-05 00:12:06

问题


I am trying to find a nice solution working on two different compass projects. One is based off Compass using Blueprint (older version), and the other is based on susy grid (newer version).

Currently, I have to reinstall the right version for the watch process.

Is it possible to run compile with a specified version? It would be great if it is also possible to run a watch process with a specified version.


回答1:


Running it as

compass _0.10.5_ compile

will do what you want. (Where you put in the desired version in place of 0.10.5, obviously.)




回答2:


The tool you're looking for is probally rvm which allows you to have different versions of ruby/gems installed and easily switch between them.




回答3:


Perhaps there's a simpler way. If you can use something like Codekit or Livereload, those tools allow you to used embedded sass libraries or define your own.

That you could use the builtin libraries for one project and your custom ones for other projects.

RVM suggested above also works i believe but never tried myself.



来源:https://stackoverflow.com/questions/13454895/run-compass-sass-with-a-different-version

工具导航Map

JSON相关