Giter Club home page Giter Club logo

less2er's Introduction

类似的模块已经很多,只是通过造轮子,熟悉npm模块的发布流程

项目地址

介绍

监控并转化less到css

注意

  • 尽量升级全局less到最新版本(>@3.0)
  • 发现在某些win10机器上使用系统cmd执行 less2er后,仅编译一次,修改文件后再不会触发编译的情况。通过排查是发现是 fs.watch(filePath,callback) 无法触发callback。但是使用webstorm、cmder等第三方命令行工具执行却正常。该问题暂时无解。
  • 除了windows10,其他平台未测试过

特性

  • 零依赖,瞬间安装
  • 支持0配置运行,默认会扫描当前目录下的css、style、less目录

计划

  • 增、删less文件,无法感知到
  • 增加lessc的所有自定义配置,做到简单、灵活
  • 在这里提交你们需要的功能 https://github.com/ccwq/less2er/issues
  • 增加节流,去除无效编译
  • 启动时默认进行一次编译
  • 修复全局调用时,有中文路径报错的问题
  • 执行时会检测是否安装全局less模块,若果发现未安装,会自动执行一次npm i -g less,完成后继续编译。

安装

npm install -g less2er

使用

  • 0配置运行
less2er 
  • 自定义less路径
less2er --path=path/to/your/less

less2er's People

Contributors

ccwq avatar

Watchers

James Cloos avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.