Cling
Cling

Reputation: 499

webpack command to trigger build

I am working on a angular project where I am looking out to configure the build command in JenkinsFile. The previous build command we used is node_modules/@angular/cli/bin/ng build (to fire the build from 'angular/cli'); I would want to configure the equivalent webpack command. I tried with node_modules/webpack/bin/webpack/webpack; but it never worked, Can someone help me with the right command to trigger the webpack through the node_modules directory?

Upvotes: 0

Views: 174

Answers (2)

Kasiriveni
Kasiriveni

Reputation: 5941

Try this command:

$ node_modules/.bin/webpack

Upvotes: 1

Cling
Cling

Reputation: 499

node_modules/.bin/ did the trick

Upvotes: 1

Related Questions