Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Empty font.css is generated #7

Open
StasKolodyuk opened this issue Jul 13, 2017 · 5 comments
Open

Empty font.css is generated #7

StasKolodyuk opened this issue Jul 13, 2017 · 5 comments

Comments

@StasKolodyuk
Copy link

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
Copy link

ruscon commented Aug 16, 2017

The same situation

@kaseopea
Copy link

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

@gabiseabra
Copy link
Owner

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
Copy link

Filename is specified, not an issue...

@gabiseabra
Copy link
Owner

Can you show your webpack configuration?

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

No branches or pull requests

4 participants