webpack-contrib / file-loader

File Loader
MIT License
1.86k stars 255 forks source link

nosupport .ttc Format font file #359

Closed const-undefined-man closed 4 years ago

const-undefined-man commented 4 years ago

Sorry, there's no demo address here; just want to make sure that. TTC font file loading is not supported

anikethsaha commented 4 years ago

can you share your webpack config ?

alexander-akait commented 4 years ago

It looks like you just deleted our lovely crafted issue template. It was there for good reasons. Please help us solving your issue by answering the questions asked in this template. I'm closing this. Please either update the issue with the template and reopen, or open a new issue.

Just add \.ttc$ to test property

const-undefined-man commented 4 years ago

I made a mistake before. That's good

  chainWebpack: config => {
    config.module
      .rule('file')
      .test(/\.TTC$/)
      .use('file-loader')
      .loader('file-loader')
      .end();
  },