gabiseabra / google-fonts-webpack-plugin

131 stars 44 forks source link

Downloads fonts on each Webpack Watch build #9

Open jgreubel opened 7 years ago

jgreubel commented 7 years ago

This plugin is executed on each watch cycle. I believe this is unnecessary because the font declarations in the webpack config are not changing and don't require updating. I'm assuming this is also adding a slight delay to each watch cycle as well.


As a side note, this plugin also appears to have an interesting (but maybe harmless) chunk name bug during a webpack watch. It appears the the chunk name defined in the options.name variable is consistently being added again and again on each watch cycle and produces this output:

image

However, this "bug" will be irrelevant if this plugin is not executed on each watch cycle.