These are chat archives for AngularClass/angular2-webpack-starter

17th
Sep 2016
Navin Saini
@sumedha-navin
Sep 17 2016 04:41
Hi, all
Is there any expert to help me to reduce the bundle size of webpack generated vendor file. It's around 4.5 mb in size
import '@angular/platform-browser';
import '@angular/platform-browser-dynamic';
import '@angular/core';
import '@angular/common';
import '@angular/forms';
import '@angular/http';
import '@angular/router';
import '@angularclass/hmr';
import 'rxjs/add/operator/map';
import 'rxjs/add/operator/mergeMap';

import 'aws-sdk/dist/aws-sdk.js';
import 'bootstrap';
import 'bootstrap-select';
import 'chart.js';
import 'fullcalendar';
import 'jquery';
import 'jquery-mousewheel';
import 'jquery-placeholder';
import 'malihu-custom-scrollbar-plugin';
import 'moment';
import 'ng2-bootstrap';
import 'ng2-charts';
import 'ng2-toastr';
import 'node-waves';
import './lib/js/jquery-ui.js';
import './lib/js/jquery.fullcalendar.ipad.js';
import './lib/js/functions.js';

import 'animate.css/animate.css';
import 'bootstrap/dist/css/bootstrap.css';
import 'bootstrap-select/dist/css/bootstrap-select.css';
import 'fullcalendar/dist/fullcalendar.css';
import 'malihu-custom-scrollbar-plugin/jquery.mCustomScrollbar.css';
import 'material-design-iconic-font/dist/css/material-design-iconic-font.css';
import 'ng2-toastr/ng2-toastr.css';
import './lib/css/app.css';
import './lib/css/app2.css';
import './lib/css/custom.css';

if ('production' === ENV) {
  // Production


} else {
  // Development

}
Marinho Brandão
@marinho
Sep 17 2016 07:34
I'd star by getting rid of jquery
Mayur Bhatt
@go4mayur_twitter
Sep 17 2016 19:22
Hi all, is there anyone who know, how to use PipeTransform with angular2 final webpack cli based application
i used PipeTransform with rc5 which was working properly
i am trying to move to angular2 final, but this is kind a roadblock for me
Marinho Brandão
@marinho
Sep 17 2016 19:30
Which error you get, Mayur? My pipe transform classes are the same and workibg
I just created a module for all my pipes, as they all were in the same directory, and export them all. Other modules import them and thats it
Mayur Bhatt
@go4mayur_twitter
Sep 17 2016 22:03
@marinho actually I made small custom pipes inside component, that was causing trouble
Later on I could fix it by creating new files for pipes
And it worked