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
Post a Comment