less2css Sublime文本路径设置

时间:2016-01-20 08:26:30

标签: css less sublimetext3

我有

./style.css
./style.less (in this file i include LESSes from ./lesscss/*
./lesscss/*.less
./lesscss/modules/*.less

我如何设置less2css?

如果我设置:如果编辑style.less,则此方法有效。但是如果我从./lesscss/编辑一些文件并保存它,那么它就会崩溃。

{
    "autoCompile": true,
    "minify": true,
    "outputDir": "./",
    "lessBaseDir": "./",
    "main_file": "style.less",
}

错误:

lessc: ENOENT: no such file or directory, open .../gcm/skins/zmo/lesscss/style.less'

但正确的路径是

.../gcm/skins/zmo/style.less'

1 个答案:

答案 0 :(得分:1)

见这里:http://www.joomla178.com/joomla-share/front-end/661-about-sublime-less2css-outdir-css.html

  1. 项目 - 将项目另存为..
  2. 编辑按步骤1保存的config.sublime-project文件
  3. 在config.sublime-project中添加代码
  4. 
    
    connect
    
    
    

    1. 修改项目的路径lessBaseDir和outputDir