Skip to content
This repository was archived by the owner on May 1, 2020. It is now read-only.
This repository was archived by the owner on May 1, 2020. It is now read-only.

Improvement: Named chunks with code splitting in Ionic 3 #882

Open
@FdezRomero

Description

@FdezRomero

Note: for support questions, please use one of these channels:

https://forum.ionicframework.com/
http://ionicworldwide.herokuapp.com/

Short description of the problem:

It's common for devs needing to verify/debug what really gets exported or referenced in a module. As the chunks are named as sequential numbers, you have to check them one by one in order to find the module you're looking for (we have 80 of them).

What behavior are you expecting?

Chunks name to have some kind of reference to the module's class or file name. I believe Webpack calls this feature "named chunks": https://webpack.github.io/docs/code-splitting.html#named-chunks

Steps to reproduce:

  1. Create an NgModule for every page.
  2. Decorate pages with IonicPage.
  3. Build.
  4. Chunks are named sequentially in www/build.

Which @ionic/app-scripts version are you using?
1.3.1

Other information: (e.g. stacktraces, related issues, suggestions how to fix, stackoverflow links, forum links, etc)

    Cordova CLI: 6.5.0
    Ionic Framework Version: 3.0.1
    Ionic CLI Version: 3.0.0-beta.5
    ios-deploy version: 1.9.1
    ios-sim version: 5.0.13
    OS: macOS Sierra
    Node Version: v6.10.1
    Xcode version: Xcode 8.2.1 Build version 8C1002

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions