plover-assets-less

plover plugin for compile less css

Usage no npm install needed!

<script type="module">
  import ploverAssetsLess from 'https://cdn.skypack.dev/plover-assets-less';
</script>

README

plover-assets-less

NPM version build status Test coverage

plover less插件,支持@importurl()对其他模块资源的引入。

Installing

npm install --save plover-assets-less

Usage

// 引入common模块的reset样式,所在模块目录为common/assets/css/reset.less
@import 'common:reset';

@border__color: #e8e8e8;

.spliter {
  border-right: 1px solid @border__color;
}

.icon__back {
  // 引入common模块的back图片,所在模块目录为common/assets/img/icons/back.png
  background-image: url('common:icons/back.png');
}