this is my current code to copy relevant files from my source to my build dir. It does not work as expected
return gulp.src([
'src/**/*',
'!src/**/*(*.sass|*.scss|*.js)',
'!src/(components|config|elements|less|sass|scss|platforms)',
'src/console.js',
'src/cordova.js',
'src/config.xml',
]).pipe(plugins.copy("www", {prefix: 1}));
My idea is this:
- Select all files and folders in src
- Remove all js and sass files because they get compiled/concat/minified and copied to build in another task
- However console.js and cordova.js have to be copied, so i want to reinclude them into the glob
Well, i thought the elements order in the globArray is a priority or something so that e.g. console.js gets reincluded after it got filtered out. It doesnt seem so :(
What can i do?