Skip to content
This repository has been archived by the owner on Dec 25, 2018. It is now read-only.

Enhancement - Scan javascript chunk output for classnames #116

Open
james-s-turner opened this issue Jun 15, 2017 · 1 comment
Open

Enhancement - Scan javascript chunk output for classnames #116

james-s-turner opened this issue Jun 15, 2017 · 1 comment

Comments

@james-s-turner
Copy link

I have a number of react apps that use a shared component library. Each app uses a different subset of the shared library. In each apps webpack config I have to hardcode the paths of the shared components the app uses. Effectively I am duplicating the work that webpack does navigating the dependency tree. Would it be possible to scan the output from webpack (effectively the emitted js chunks) for classnames rather than configuring the paths?

@zekida
Copy link

zekida commented Jul 10, 2017

i actually think this should be the default behavior with an option to disable it.
it would free users from extra work to add globs for UI framework dependencies, and would probably be the most 'general use case' of this plugin.. or am I missing something?
it should work very nicely with properly tree-shaken chunks too.

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

No branches or pull requests

2 participants