- fixed wrong code refactoring

- removed BundleAnalyzer
pull/6207/head
Roman Roelofsen 7 years ago
parent 1b65fd4359
commit f073e100d4
  1. 2
      frontend/app/components/wp-relations/wp-relations.directive.ts
  2. 6
      frontend/webpack-main-config.js

@ -78,7 +78,7 @@ export class WorkPackageRelationsController {
return scopedObservable(this.$scope, this.wpCacheService.loadWorkPackage(wpId).values$());
});
return zip(observablesToGetZipped);
return zip(...observablesToGetZipped);
}
protected getRelatedWorkPackageId(relation:RelationResourceInterface):string {

@ -39,7 +39,7 @@ var ForkTsCheckerWebpackPlugin = require('fork-ts-checker-webpack-plugin');
var HappyPack = require('happypack');
var ExtractTextPlugin = require('extract-text-webpack-plugin');
var CleanWebpackPlugin = require('clean-webpack-plugin');
var BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin;
// var BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin;
var mode = (process.env['RAILS_ENV'] || 'production').toLowerCase();
var production = (mode !== 'development');
@ -289,8 +289,8 @@ function getWebpackMainConfig() {
),
// Restrict loaded moment locales to the ones we load from translations
new webpack.ContextReplacementPlugin(/moment[\/\\]locale$/, new RegExp('(' + localeIds.join('|') + ')\.js$', 'i')),
new BundleAnalyzerPlugin()
new webpack.ContextReplacementPlugin(/moment[\/\\]locale$/, new RegExp('(' + localeIds.join('|') + ')\.js$', 'i'))
// new BundleAnalyzerPlugin()
]
};

Loading…
Cancel
Save