npm install --save-dev start-less
# or
yarn add --dev start-lessimportstartfrom'start';importreporterfrom'start-pretty-reporter';importfilesfrom'start-files';importcleanfrom'start-clean';importreadfrom'start-read';importlessfrom'start-less';importrenamefrom'start-rename';importwritefrom'start-write';exportconstbuild=()=>start(reporter())(files('build/'),clean(),files('lib/**/*.less'),read(),less({sourceMap: true}),rename(file=>file.replace(/\.less$/,'.css')),write('build/'));This task relies on [{ path, data, map }] input and provides the same, see documentation for details.
less(options)
options– Less options,{ relativeUrls: true, compress: false }by default