How to compile .less file in NodeJS project
How to compile .less file in NodeJS project
Make sure your computer has NodeJS installed
1, Create new project less
mkdir demoless
cd demoless
npm init
npm i less --save-dev
2, Create file test.less
3, Config compile
add "less": "lessc test.less > test.css" to scripts in package.json
4, Compile
npm run lessThanks !
Post a Comment