I'm hoping to use Webpack compile all our less files in /less
to /public/css
and include them in our server-side templates as regular css (not sticking the text into the using ExtractText plugin or overloading require).
That is, I'm trying to get Webpack + a LESS loader or plugin to glob to compile all the .less files:
/less/foo.less /less/bar.less /less/unknown-new-less-file.less ...
and output them to
/public/css/foo.less /public/css/bar.less /less/unkown-new-less-file.less
I then want to include them in our app by pulling in css file using
<link rel="stylesheet" href="foo.css">
I tried using a Bash script and lessc
instead of Webpack, which worked fine, but won't enable us to automatically re-compile the LESS when the source files change.