Set webpack output path -


i have upgraded webpack 1 2, have given relative output.path absolute path necessary. bundle file goes /static/v4/angular/dist/ in webpack 1 had given output.path: '../static/v4/angular/dist'. how can modify works same previously? here directory structure:

myapp   |   angular      |      config   |   static     |     v4/angular/ // here want files go 

all need convert absolute path. can use path.resolve this.

path.resolve(__dirname, '../static/v4/angular/dist') 

__dirname directory of executed file (your webpack config) , add relative path there. , path.resolve give absolute path of combining them.


Comments

Popular posts from this blog

Command prompt result in label. Python 2.7 -

javascript - How do I use URL parameters to change link href on page? -

amazon web services - AWS Route53 Trying To Get Site To Resolve To www -