Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow to work with experimental code splitting #19

Open
jnields opened this issue May 17, 2018 · 1 comment
Open

Allow to work with experimental code splitting #19

jnields opened this issue May 17, 2018 · 1 comment

Comments

@jnields
Copy link

jnields commented May 17, 2018

Would be wonderful if this could work with code splitting.

Maybe something like this:

{
    input: [
      'src/page-a',
      'src/page-b',
    ],
    output: {
      dir: 'dist',
      format: 'system',
    },
    plugins: [
      hash({
        dest: '[name].[hash].js'
      }),
    ],
}
@jnields
Copy link
Author

jnields commented May 17, 2018

To make this work right now, this plugin would have to change the systemjs dependencies of the entry chunks.

Rather than depending on, e.g. ./chunk-a123456.js, an entry chunk should depend on a hashed file (e.g. ./bc9ad9a0f06e754084463e43971368b1b23979ce.js)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant