Skip to content

Cannot use typeface in a webpack-with-sass-loader setup #199

Description

@Abdull

How can I use typeface-source-sans-pro in a webpack project that laverages sass-loader?

The current documentation is too sparse to make me understand what to do.

I did npm install --save typeface-source-sans-pro.

And then?

In my src/app.scss, I have added
@import 'typeface-source-sans-pro';

But then the webpack build fails with
Error: Can't resolve './files/source-sans-pro-300.woff2' in 'C:\Users\Abdull\git\webpack-demo\src'

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions