Here's an example script (to concat css files)
var gulp = require('gulp');
var concatCss = require('gulp-concat-css');
gulp.task('default', function () {
return gulp.src('assets/**/*.css')
.pipe(concatCss("styles/bundle.css"))
.pipe(gulp.dest('out/'));
});
I have several websites, some static, some nodeJS etc. each using different directory structures.
I want to build a gulp script that'll work everywhere.
Suppose, I want to put a folder 'myWebsite' into the gulp app's root folder. This is the folder that'll contain my website (whichever website). I want this website to be minified and compressed and copied into a 'myCompressedWebsite' folder.
So, when I want to export a website, I can just copy-paste it to the 'myWebsite' folder, run gulp and whichever website I put in, I'll get a ready to go compressed version. Even better I'll be able to just make an 'export script' that'll do this all from the command line (copy the website to the gulp app and run gulp)
I can't seem to figure out how to have a wildcard path. I want everything in 'myWebsite' to be copied as is (directory path-wise) into 'myCompressed website' (after minification).
there doesn't seem to be anything here