I have the following which is not working correctly.
Here is my folder structure:
Here is what I'm expecting:
This is what I'm currently getting:
It is not including the custom.js file but instead creates a 2 folders
'test/bills/billing-one.js' - see above
bills/ folder to contain custom.js
So if there are 2 files:
I would expect test/ folder to include
test/billing-one.min.js (this file would contain billing-one + custom.js)
test/billing-two.min.js (this file would contain billing-two + custom.js)
I don't want to hard code the file names in. If more files are added to
bills/ folder the should be concat and output to the
Any help much appreciated.
UPDATE SINCE ANSWER ACCEPTED:
Use the follow updated code to make sure this works as intended - otherwise you'll run into errors when running GRUNT.
I did try adding this to the answer by submitting an edit for review. But it got rejected, twice, by the all knowing all superior mods... when in fact it's a valid input and improves on the answer given. Note the