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

Update react-scripts to address npm audit issues. #83

Merged
merged 4 commits into from
Aug 18, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion config-overrides.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@

/*---------------------------------------------------------------------------------------------
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
* See LICENSE.md in the project root for license terms and full copyright notice.
*--------------------------------------------------------------------------------------------*/
const MonacoWebpackPlugin = require("@bentley/monaco-editor/lib/monaco-webpack-plugin").MonacoEditorWebpackPlugin;

const {
override,
addWebpackPlugin,
Expand All @@ -12,9 +14,15 @@ const {

module.exports = function (config, env) {

config.optimization.minimizer.find(minimizer => {
if (minimizer.options.extractComments) {
minimizer.options.extractComments = false;
}
});

return Object.assign(config, override(
addWebpackPlugin(new MonacoWebpackPlugin({
languages: ["typescript", "javascript", "css", "scss", "html"]
})),
)(config, env))
}
}
Loading