I have a directory and want to exclude a few files like Ant does, is this possible with webassets?
Or does if bundle could take a list or tuple, which doesn’t seem to be the case?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The
Bundleconstructor signature looks like this (from the source at github):That means that the contents can be specified as a series of positional arguments, as in the example in the documentation:
But it also means that you can use Python’s ability unpack argument lists. From that page:
So you could just easily the write the example above as:
and of course you can filter/slice/dice the list to your hearts content before bundling.