Skip to content
This repository has been archived by the owner on Jul 19, 2021. It is now read-only.

Problem with add custom fonts in .scss #680

Closed
Qadda opened this issue Jul 17, 2018 · 2 comments
Closed

Problem with add custom fonts in .scss #680

Qadda opened this issue Jul 17, 2018 · 2 comments

Comments

@Qadda
Copy link

Qadda commented Jul 17, 2018

Problem

Hello! When I started working with Slate, I had a problem with recognizing the .woff format, in the "assets / fonts" folder, it found the files, but there was a type error that was not specific. As a result, I went into the configuration webpack - core.js and made a separate configuration and it solved my problem.

I hope I helped someone :)

{

    test: /\.woff(2)?(\?v=[0-9]\.[0-9]\.[0-9])?$/,
    exclude: /node_modules/,
    use: [
      {
        loader: 'url-loader',
        options: {
          limit: 1000,
          mimetype: 'application/font-woff'
        }
      }
    ]
  },
  {
    test: /fonts\/.*\.(eot|svg|ttf)$/,
    exclude: /node_modules/,
    loader: 'file-loader',
  },

screenshot_7

@t-kelly
Copy link
Contributor

t-kelly commented Oct 25, 2018

@t-kelly t-kelly closed this as completed Oct 25, 2018
@lock
Copy link

lock bot commented Nov 24, 2018

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Nov 24, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants