Is there a way to ignore everything except for a folder and it's contents for a bower library. I tried something like this but it didn't work
"ignore": [
"./!(dist)"
]
My folder structure looks like this and I only want to distribute the dist
folder.
/dist
myLibrary.js
myLibrary.min.js
/src
...
/node_modules
...
package.json
bower.json
...
You should use the following ignore patterns:
"ignore": [
"*",
"!dist/",
"!dist/*"
]
Notice you need the first pattern in order to first ignore everything.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.