madskristensen / NpmTaskRunner

Visual Studio extension
Other
88 stars 32 forks source link

Create option to run different npm scripts depending on the build environment #70

Open evgomes opened 5 years ago

evgomes commented 5 years ago

Installed product versions

Description

It would be great to have a way to run different npm scripts depending on the current build environment (development or production) after building the project.

I'm working on a project where I use Webpack to bundle some Javascript and CSS dependencies, but I have to run different scripts for each environment.

Current behavior

Currently, it's not possible to bind different npm commands to run when using "Bindings" > "After Build" depending on the build environment.

Expected behavior

It would be good to have an option to configure which commands should run for different build environments.