Coder Social home page Coder Social logo

Comments (5)

PatrickJS avatar PatrickJS commented on May 1, 2024

I'm using ./src/common/BrowserDomAdapter to ensure that the script being compile is using the correct dom adapter (I had a problem in the past where this was a problem in webpack). And the other files are not needed

from mfe-starter.

PatrickJS avatar PatrickJS commented on May 1, 2024

I removed everything except angular2/angular2
https://github.com/angular-class/angular2-webpack-starter/blob/master/webpack.config.js

    'angular2': [
      // Angular 2 Deps
      'zone.js',
      'reflect-metadata',
      'rtts_assert/rtts_assert',
      'angular2/angular2'
    ],

from mfe-starter.

gajus avatar gajus commented on May 1, 2024

I nonetheless do not understand the reason you are including angular2/angular2. Your entry point is your app script. It imports angular2/angular2 using import statement. Unless I am missing something, if you are including angular2/angular2 this way, your script does not even pick it up, i.e. dead weight.

On Jul 19, 2015, at 16:16, PatrickJS [email protected] wrote:

I removed everything except angular2/angular2
https://github.com/angular-class/angular2-webpack-starter/blob/master/webpack.config.js

'angular2': [
  // Angular 2 Deps
  'zone.js',
  'reflect-metadata',
  'rtts_assert/rtts_assert',
  'angular2/angular2'
],


Reply to this email directly or view it on GitHub.

from mfe-starter.

PatrickJS avatar PatrickJS commented on May 1, 2024

When webpack generates the file it chunks modules together so I'm forcing Angular to remain in one file for the browser to cache.

from mfe-starter.

gajus avatar gajus commented on May 1, 2024

Thats because you are using the plugin. This kinda defeats the purpose of the latter plugin, esp. on a small app.

On Jul 19, 2015, at 18:00, PatrickJS [email protected] wrote:

When webpack generates the file it chunks modules together so I'm forcing Angular to remain in one file for the browser to cache.


Reply to this email directly or view it on GitHub.

from mfe-starter.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.