@wxa/compiler-stylus

wxa stylus compiler

Usage no npm install needed!

<script type="module">
  import wxaCompilerStylus from 'https://cdn.skypack.dev/@wxa/compiler-stylus';
</script>

README

wxa-compiler-stylus

stylus 编译器

Install

npm i -D @wxa/compiler-stylus

Usage

使用默认配置

// wxa.config.js
module.exports = {
    use: ['stylus'],
}

指定 stylus 配置

// wxa.config.js
module.exports = {
    use: [{
        name: 'stylus',
        test: /\.styl$|\.stylus$/,
        options: {}
    }],
}

stylus 相关配置请查看 stylus