markdalgleish / static-site-generator-webpack-plugin

Minimal, unopinionated static site generator powered by webpack
MIT License
1.61k stars 97 forks source link

ExtractTextWebpackPlugin generated assets are not in locals.assets #110

Open internetofsteve opened 7 years ago

internetofsteve commented 7 years ago

Howdy,

In my render function I am using locals to dynamically generate the filenames of my assets.

I create .css assets using the ExtractTextWebpackPlugin and noticed that they do not exist in locals.assets, which seems to only contain my .js assets.

I can find my .css assets when I look in locals.webpackStats.compilation.assets, however.

Is this expected functionality?

Cheers!

skipjack commented 6 years ago

Seeing this issue as well -- will use webpackStats for now as a workaround but it would be nice to fix this for locals.assets rather than having to dig into stats.