gabiseabra / google-fonts-webpack-plugin

131 stars 44 forks source link

Empty font.css is generated #7

Open StasKolodyuk opened 7 years ago

StasKolodyuk commented 7 years ago

Hi!

I've tried to use this plugin with the following configuration:

plugins: [
    new GoogleFontsPlugin({
      fonts: [
        {
          family: "Roboto"
        }
      ]
    }),
    new ExtractTextPlugin('bundle.css')
  ]

However, this generates an empty font.css file. My environment is Windows 7, Webpack 2.6.1, google-fonts-webpack-plugin 0.4.1

Thanks

ruscon commented 7 years ago

The same situation

kaseopea commented 6 years ago

Same issue when using with optimize-css-assets-webpack-plugin

gabiseabra commented 6 years ago

Hi, sorry for the taking so long to respond to this. This plugin emits the file directly to the filename path, rather than passing the output through webpack. You need to specify the filename prop in the plugin's configuration.

kaseopea commented 6 years ago

Filename is specified, not an issue...

gabiseabra commented 6 years ago

Can you show your webpack configuration?