Skip to content
This repository has been archived by the owner on Jun 20, 2023. It is now read-only.

Commit

Permalink
πŸ”€ Retain original file name for Webpack url loader (#40)
Browse files Browse the repository at this point in the history
  • Loading branch information
trickypr authored Apr 3, 2021
2 parents 3fb0420 + 25a2fc4 commit 3409e6e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion webpack/webpack.common.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ module.exports = {
loader: 'url-loader',
options: {
limit: 10000,
name: './font/[hash].[ext]',
name: './font/[name].[ext]',
mimetype: 'application/font-woff',
},
},
Expand All @@ -68,6 +68,9 @@ module.exports = {
use: [
{
loader: 'file-loader',
options: {
name: '[path][name].[ext]',
},
},
],
},
Expand Down

0 comments on commit 3409e6e

Please sign in to comment.