madskristensen / WebPackTaskRunner

A Visual Studio extension
Other
39 stars 16 forks source link

Added --color flag to serve tasks #41

Closed ghost closed 7 years ago

ghost commented 7 years ago

Now displays colors in the console when running serve tasks.

Fixes #34

madskristensen commented 7 years ago

Does the --color flag work on both WebPack version 1 and 2?

ghost commented 7 years ago

I just checked the Webpack 1 docs and it appears they only support the --colors flags (I did not take into accoutn Webpack 1 since I assumed no one was using that anymore since it has big fat warnings about not using it anymore on the official site haha). Will change this since webpack 2 supports both --color and --colors

ghost commented 7 years ago

Alright changed it so it works with both version.

TBH there should probably be some way to detect which version the user is using (parsing package.json and extracting major version number of both webpack and webpack-dev-server for example) and make options available based on that. But thats for a different time, perhaps i will work some more on this if i need it in the future :)