Skip to content
This repository has been archived by the owner on May 29, 2019. It is now read-only.

Gleaning extracted files from the final compilation object #130

Closed
lzilioli opened this issue Nov 26, 2015 · 1 comment
Closed

Gleaning extracted files from the final compilation object #130

lzilioli opened this issue Nov 26, 2015 · 1 comment

Comments

@lzilioli
Copy link

I am trying to write a plugin that produces a JSON manifest file from semantic module names to the files that were created by my webpack build.

e.g. I have a main.js file that requires a sass file. The built directory ends up with 3 files: main-[hash].js, 1-[chunkhash].js, and main-[contenthash].css

I want my manifest to contain the following:

main: {
  js: 'build/main-[hash].js',
  css: 'build/main-[contenthash].js'
}

I had this working before introducing extract-text-plugin into the picture by iterating over stats.compulation.namedChunks within my manifest plugin. However, the css files are not in that object.

What can I do to achieve this sort of thing?

@bebraw
Copy link
Contributor

bebraw commented Jan 28, 2017

I think this has been done by a couple of plugins already. I have listed a few in this section (a tip at end).

Feel free to re-open the question at Stack Overflow if still relevant.

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