Skip to content

Commit

Permalink
Updated file-loader as an interim solution before webpack 5 migration
Browse files Browse the repository at this point in the history
  • Loading branch information
Vanguard90 committed Mar 28, 2022
1 parent 2230cff commit 1b44ade
Show file tree
Hide file tree
Showing 3 changed files with 84 additions and 8 deletions.
76 changes: 71 additions & 5 deletions eneskirimi.com-webpack-setup/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion eneskirimi.com-webpack-setup/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"cross-env": "^7.0.3",
"css-loader": "^2.1.1",
"extract-text-webpack-plugin": "^4.0.0-beta.0",
"file-loader": "^2.0.0",
"file-loader": "^6.2.0",
"html-loader": "^1.3.2",
"html-webpack-plugin": "^3.2.0",
"node-sass": "^5.0.0",
Expand Down
14 changes: 12 additions & 2 deletions eneskirimi.com-webpack-setup/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,21 @@ module.exports = {
},
{
test: /\.(png|svg|jpg|gif)$/,
use: ["file-loader"],
use: {
loader: "file-loader",
options: {
esModule: false,
},
},
},
{
test: /\.(woff|woff2|eot|ttf|otf)$/,
use: ["file-loader"],
use: {
loader: "file-loader",
options: {
esModule: false,
},
},
},
],
},
Expand Down

0 comments on commit 1b44ade

Please sign in to comment.