Closed sandrodz closed 9 years ago
So, I figured it out.
{ "scripts": { "postinstall": "./postinstall.sh" } }
And inside postinstall.sh whatever you want, like: wiredep -s path/to/src.html wiredep -s path/to/src2.html wiredep -s path/to/src3.html
Sorry I missed this ticket, @sandrodz. That solution is probably the best, but another option that should work would be something with globs:
{
"scripts": {
"postinstall": "wiredep -s views/**/*.html"
}
}
I haven't tested though, so forgive me if you try and it doesn't work.
Thanks for coming back to post your solution!
Passing files with different filetypes is also a little wonky:
wiredep --src 'src/index.html,src/scss/main.scss'
Does not wire anything. Instead:
wiredep --src src/index.html --src src/scss/main.scss
Uh, sure. That makes sense. Thanks, @al-the-x.
Is it possible to edit multiple files?
{ "scripts": { "postinstall": "wiredep -s path/to/src.html", "postinstall": "wiredep -s path/to/src2.html" } }