this is my first question ever on StackOverflow.
I am a Mac user and I can normally run multiple command-line commands simply by using &
e.g.
gulp & 11ty/eleventy --serve
I have been informed that this doesn't work on Windows. But this does work on Windows:
gulp "&" 11ty/eleventy --serve
Therefore, in my package.json
I’ve had to do this (below), and it doesn't look so smart, to me:
"scripts": {
"dev": "gulp & npx @11ty/eleventy --serve",
"dev-win": "gulp \"&\" npx @11ty/eleventy --serve"
}
Is there a better way? one way that works for both Mac and Windows terminals?