I'm using webpack
to create output bundles for an angular2
project. I'm creating two bundles containing project codes and vendors:
entry: {
main: './src/main',
vendors: ['./node_modules/@angular/core', './node_modules/moment']
},
module: {
loaders: [{
test: /\.js$/,
exclude: [nodeModulesDir],
loader: 'babel'
}]
},
With a brief book into vendors bundle, I see all the locale files of moment
are included in vendor bundle, but I need just de_DE
. how can I exclude unnecessary locales?