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

Not very usable for chunked output #7

Open
zgoda opened this issue Aug 1, 2020 · 1 comment
Open

Not very usable for chunked output #7

zgoda opened this issue Aug 1, 2020 · 1 comment

Comments

@zgoda
Copy link

zgoda commented Aug 1, 2020

With config

  input: {
    dashboard: 'src/app/static/js/dashboard.js'
  },
  output: {
    dir: 'src/app/static/dist',
    format: 'es',
    sourcemap: true
  }

I'm getting

{
  "dashboard.js": "dashboard.js"
}

Which is not very usable since I expected to get either a key of my input dict or source path as a key in manifest, but is seems it's some other thing? Since after renaming source file to src/app/static/js/dashboard/index.js the output is exactly the same. What exactly is a key in this dictionary?

@lnmp4000
Copy link

Add a custom filter to the plugin in your rollup config

outputManifest({ filter: () => true }),

That ensured all the chunks were also included e.g.

{
  "edit.js": "edit.98b0ed06.js",
  "home.js": "home.2968c158.js",
  "index.js": "index.js",
  "key.js": "key.23f5f6da.js",
  "paddedBox.js": "paddedBox.7c24159a.js",
  "react.js": "react.f523e8df.js",
  "results.js": "results.6e46a88f.js",
  "service-worker.js": "service-worker.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

2 participants