Today I started looking for gulp.js to compile my smaller files, etc.
I have this and it works with the task, but the compiled files are all in the same folder - not supporting the original hierarchy.
Is there a way to ensure that the output supports the original file structure?
I am new to gulp, so it may not do it right.
Here is my gulp file (part related to Less):
var sourceLess = 'app/assets/stylesheets/less'; var targetCss = 'public/css2';
I would like Less files from the source themes folder to be placed in the destination themes folder. What options are I missing?
Do I need to run them as separate tasks?
thank
Update: I looked at the proposed post and changed my paths to this:
gulp.src([sourceLess + '/**/my-bootstrap-theme.less', sourceLess + '/themes/**/*.less', sourceLess + '/responsive.less'], { base: 'sourceLess' })
I also changed the directory variables to this:
var sourceLess = './app/assets/stylesheets/less'; var targetCss = './public/css2';
But it does not create the themes folder, I was expecting it.
gulp gulp-less
Ray Feb 22 '14 at 23:37 2014-02-22 23:37
source share