less.js-windows


Ⅰ. 插件描述

A way to run the LESS.js compiler in windows

Ⅱ. 基本信息

创建日期:  2011-02-02
使用用户:  1
Github星:  356
插件作者:  Duncan Smart

Ⅲ. 安装方法

使用Vundle管理器安装

在你的.vimrc下添加:
Plugin 'duncansmart/less-js-windows'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall

对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。

使用NeoBundle管理器安装

在你的.vimrc下添加:
NeoBundle 'duncansmart/less-js-windows'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall

使用VimPlug管理器安装

在你的.vimrc下添加:
Plug 'duncansmart/less-js-windows'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall

使用Pathogen管理器安装

在终端中运行以下命令:
cd ~/.vim/bundle
git clone https://github.com/duncansmart/less.js-windows

Ⅳ. 文档说明

# LESS.js for Windows

A standalone version of the LESS command-line compiler that will run on Windows with no other dependencies.

Consists of a standalone version of Node.js and the required less.js files/dependencies.

Install

Download and extract the release ZIP and invoke lessc.cmd as detailed below.

Usage

Basic usage:

lessc  path\source.less  path\output.css

Compress CSS:

lessc  --clean-css  path\source.less  path\output.css

For full usage:

lessc -h

History

Previously the project used the Windows Script Host cscript.exe as its runtime. Over time this was proving to be diffcult to support as it was essentially using the browser-based version of less.js and stubbing out objects like window and document to mimic the browser environment. This version is still available in the windows-script-host branch.

添加新评论