Skip to content

minimizer removes font definitions #94

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

Closed
rondonjon opened this issue Jul 6, 2015 · 2 comments
Closed

minimizer removes font definitions #94

rondonjon opened this issue Jul 6, 2015 · 2 comments

Comments

@rondonjon
Copy link

I have the following loader defined for all my CSS files:

{
   test: /\.css$/,
   loaders: [
       "style",
       "css?minimize"
   ]
},

The following CSS is one stand-alone file from font-squirrel.com which defines the DroidSans font:

@font-face {
    font-family: 'droid_sansregular';
    src: url('../font/droid_sansregular/DroidSans-webfont.eot');
    src: url('../font/droid_sansregular/DroidSans-webfont.eot?#iefix') format('embedded-opentype'),
         url('../font/droid_sansregular/DroidSans-webfont.woff') format('woff'),
         url('../font/droid_sansregular/DroidSans-webfont.ttf') format('truetype'),
         url('../font/droid_sansregular/DroidSans-webfont.svg#droid_sansregular') format('svg');
    font-weight: normal;
    font-style: normal;
}

Problem: With the minimizer flag in place, the entire CSS is reduced to an empty string. Removing the minimizer flag resolves the problem.

This applies to all CSS files with @font-faces in them. All other CSS files are imported and minimized as expected.

@wmertens
Copy link

same here 😢

@wmertens
Copy link

This was fixed in 0.15.2, just update your css-loader. I think this issue can be closed.

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

3 participants