Angularclass/angular2-webpack-starter : Exclude Mock Files From Webpack Config For Prod Builds
I'm using the AngularClass/angular2-webpack-starter and I've been struggling with its webpack configuration for a while, although what I want to achieve seems very simple. Basicall
Solution 1:
Context: angular2-webpack-starter
The assets folder recopy during the build task is handle by a webpack plugin aka CopyWebpackPlugin. By default it is only setup in the webpack.common.js. To achieve what you are trying to, you should put the same task in both of your environments. That way you would be able to exclude the unwanted files.
Post a Comment for "Angularclass/angular2-webpack-starter : Exclude Mock Files From Webpack Config For Prod Builds"