madskristensen / WebPackTaskRunner

A Visual Studio extension
Other
39 stars 16 forks source link

cannot remove --mode=development #58

Closed sherrysyl closed 3 years ago

sherrysyl commented 3 years ago

Installed product versions

Description

  1. click on webpack.config.js
  2. run-development, the command automatically run the following cmd /c SET NODE_ENV=development&& webpack --mode=development --color and with error Unknown argument: mode Process terminated with code 1.

Current behavior

it was working well before run as cmd /c SET NODE_ENV=development&& webpack --color but now automatically adding --mode=development, and can't find where to remove it

Expected behavior

  1. click on run should run without --mode=development
  2. or there is settings allow to manually remove it
madskristensen commented 3 years ago

Run the new "Default" tasks and see if that fixes it for you

sherrysyl commented 3 years ago

thanks for the quick response. "default" works for me but it is only for development environment, if I click run-production, it gets the Unknown argument: mode error. I can't find a way to build production package as before.

or where can I find the older version 1.5.94 to run the cmd without mode=dev

moshbenz commented 3 years ago

Hello, we're having the same problem and we host a ton of apps with the same issue. Breaking for everything using Webpack 3. Will there be a repair in the works?

madskristensen commented 3 years ago

I made a fix. Please try this latest CI build and let me know if that works. If so, I'll upload it to the marketplace.

moshbenz commented 3 years ago

This works! By running the (old) task it works fine. Thank you!

madskristensen commented 3 years ago

Thanks for testing. Uploading to marketplace now...

sherrysyl commented 3 years ago

thanks a lot! it works for me :D