4.1.4 • Published 1 year ago

less-pure-expose v4.1.4

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
1 year ago

LESS ESModule

用于纯导出less接口,而非创建一个编译器工具。

优化点:

  • 移除第三方依赖,从而可以实现完全的ESModule

使用方法

import createLessCompiler from '//unpkg.com/less-pure-expose/es/web/index.js'

// options: https://lesscss.org/usage/#using-less-in-the-browser-options
const less = createLessCompiler(options)
// renderOptions: https://lesscss.org/usage/#programmatic-usage
const output = await less.render(lessText, renderOptions)