How to configure packaged less? for UmiJS

how to configure packaged less? for UmiJS
projects created by scaffolding are full of css files: ide/create-umi-app.html" rel=" nofollow noreferrer "> https://umijs.org/zh/guide/cr.

Feb.15,2022

is supported by default. Can't be packaged to see if the image path in the style file is incorrect


is supported by default. Just change the css in the scaffolding to less,import 's css and change it to less.

if you use ts, add declare module'* .less'; to typings.d.ts in the root directory of the project, otherwise you will report an error:

image.png

Menu