Skip to content

Commit

Permalink
file-loader is deprecated
Browse files Browse the repository at this point in the history
fixes icons and image issues
webpack-contrib/css-loader#1354 (comment)
  • Loading branch information
fchabouis committed Oct 7, 2022
1 parent 65ae2f7 commit 0821b76
Showing 1 changed file with 8 additions and 15 deletions.
23 changes: 8 additions & 15 deletions apps/transport/client/webpack.common.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,23 +76,16 @@ module.exports = {
]
}, {
test: /\.(jpe?g|png|gif|svg)$/,
exclude: [/font-awesome/],
use: [{
loader: 'file-loader',
options: {
name: '[name].[ext]',
outputPath: '../images/'
}
}]
type: 'asset/resource',
generator: {
filename: '[name][ext]'
}
}, {
test: /\.(eot|ttf|otf|woff|woff2)(\?v=\d+\.\d+\.\d+)?$/,
use: [{
loader: 'file-loader',
options: {
name: '[name].[ext]',
outputPath: '../fonts/'
}
}]
type: 'asset/resource',
generator: {
filename: '[name][ext]'
}
}]
}
}

0 comments on commit 0821b76

Please sign in to comment.