Skip to content

Incorrect paths for fonts #915

Closed as not planned
Closed as not planned
@giero

Description

@giero

Hi :)

I have comeback of known issue #88 in new version of Encore :)
So far I used the same solution as #88 (comment)

webpackConfig.module.rules[2].options.publicPath = './';
webpackConfig.module.rules[3].options.publicPath = './';

but this option is not valid anymore.
I tried to modify config using

.configureLoaderRule('fonts', (loaderRule) => {
    
})

but there's not much to do here

{
  test: /\.(woff|woff2|ttf|eot|otf)$/,
  type: 'asset/resource',
  generator: { filename: 'fonts/[name].[hash:8][ext]' },
  parser: {}
}

Do you have any idea how to do this correctly?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions