Closed jakecobley closed 7 years ago
@jakecobley are all the commands still the same? these are just under the hood stuff?
None of NPM commands have changed. You still have the following:
npm run watch
npm run build
npm run build:production
@jakecobley there are a few things I have noticed that need changing before we can merge this.
The path object has changed to allow multiple sources, exclusions, and a third-party flag for all tasks. This allows vendor scripts and scripts from Bower/NPM modules to be minified etc.
See here:
"svgSprite":
[
{
"src": "./src/img/vectors/general/**/*.svg",
"dist": "./build/img/vectors/general/",
"exclude": []
},
{
"src": "./src/img/vectors/payments/**/*.svg",
"dist": "./build/img/vectors/payments/",
"exclude": []
},
{
"src": "./src/img/vectors/social/**/*.svg",
"dist": "./build/img/vectors/social/",
"exclude": [],
}
],
I've not had time to add the option to run on all files within a directory. Just committed a HACK to solve this until I have time to do it properly.
@jakecobley this works now thanks.
@jakecobley just found the watch task gives a fat error, can you fix as soon as possible? Hoping to get this into the next release, (before end of Feb).
Tonight. If not I'm in the office tomorrow anyway.
Patched in PR #191
Each build function can now be run on multiple sources, cleaned up the formatting, and split the task and path config out.