npm install stylus-loader-inject --save-dev
yarn add stylus-loader-inject -D
- call stylus-loader-inject in the npm prestart/prebuild script
- create stylus-loader-config.js file, and place it in the root directory of project(optional)
- the stylus-loader-config.js file should export a function, and it has a options argument