diff --git a/monkey/monkey_island/cc/ui/package.json b/monkey/monkey_island/cc/ui/package.json index e6b416cbb..65d3e03d3 100644 --- a/monkey/monkey_island/cc/ui/package.json +++ b/monkey/monkey_island/cc/ui/package.json @@ -45,7 +45,6 @@ "eslint": "^6.8.0", "eslint-loader": "^4.0.1", "eslint-plugin-react": "^7.26.1", - "file-loader": "^1.1.11", "glob": "^7.2.0", "html-loader": "^0.5.5", "html-webpack-plugin": "^5.3.2", @@ -61,7 +60,6 @@ "stylelint": "^13.13.1", "ts-loader": "^8.3.0", "typescript": "^4.4.3", - "url-loader": "^1.1.2", "webpack": "^5.58.0", "webpack-cli": "^4.9.0", "webpack-dev-server": "^4.3.1" diff --git a/monkey/monkey_island/cc/ui/webpack.config.js b/monkey/monkey_island/cc/ui/webpack.config.js index c820b5fd5..3f42cb3aa 100644 --- a/monkey/monkey_island/cc/ui/webpack.config.js +++ b/monkey/monkey_island/cc/ui/webpack.config.js @@ -35,21 +35,15 @@ module.exports = { }, { test: /\.(ttf|eot|svg)(\?v=[0-9]\.[0-9]\.[0-9])?$/, - use: { - loader: 'file-loader' - } + type: 'asset/resource' }, { test: /\.woff(2)?(\?v=[0-9]\.[0-9]\.[0-9])?$/, - use: { - loader: 'url-loader?limit=10000&mimetype=application/font-woff' - } + type: 'asset' }, { test: /\.(png|jpg|gif)$/, - use: { - loader: 'url-loader?limit=8192' - } + type: 'asset' }, { test: /\.html$/,