umi-plugin-stylus
A umijs plugin for using stylus
Install
$ npm install --save-dev stylus stylus-loader umi-plugin-stylus
Optional Configuration
{
stylusLoader: {
// ...
}
}
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
}