This should hopefully be a quick answer:
Given the following folder structure:
├── public
│ ├── app
| | ├── Folder A
| | | ├──something.js
.
.OTHER FOLDERS @ the app level
.
.
| ├── libs
| │ ├── libJS files here
Inside the initConfig I'm just trying to set up some variables for a task.
src: {
js: [ 'public/**/*.js', '!public/**/*.spec.js', '!public/libs/', '!public/min/' ],
libs: ['public/libs/*.js'],
What I want in english is for <%= src.js %> to be all the js files under the public folder minus the libs folder and the min folder but the above appears to select them all.
What am I doing wrong?
To ignore all files in the libs and min folders:
js: [ 'public/**/*.js', '!public/**/*.spec.js', '!public/libs/**/*', '!public/min/**/*' ]
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With