umi-plugin-stylus

A umijs plugin for using stylus

Usage no npm install needed!

<script type="module">
  import umiPluginStylus from 'https://cdn.skypack.dev/umi-plugin-stylus';
</script>

README

umi-plugin-stylus

A umijs plugin for using stylus

npm package

NPM version NPM Downloads

Install

$ npm install --save-dev stylus stylus-loader umi-plugin-stylus

Optional Configuration

{
  stylusLoader: {
    // ...
  }
}

Stylus loader options

Other changes

typings.d.ts

  declare module '*.css';
+ declare module '*.styl';
  declare module '*.less';
  declare module '*.png';
  declare module '*.svg' {
    export function ReactComponent(props: React.SVGProps<SVGSVGElement>): React.ReactElement
    const url: string
    export default url
  }