mirror of
https://github.com/kubeshark/kubeshark.git
synced 2025-06-03 05:31:10 +00:00
* initial commit * removing files * after pr * move StatusBar to common * last changes from dev * update common-ui * webSocket was added to TrafficViewerApi * useWS * actionButtons added to TrafficV * comment clean * api clean up * api clean up * statusbar position changed * Checkbox changed * AnalyzeButton exported to common * CustomModal added from Ent * oas modal exported to common * removed redundant * oasmodal usage * es6 function * api changed * removed react-scripts Co-authored-by: Leon <>
21 lines
742 B
JavaScript
21 lines
742 B
JavaScript
// this workaround fix a warning of mini-css-extract-plugin throws "Conflicting order" during build
|
|
// https://github.com/facebook/create-react-app/issues/5372
|
|
|
|
const path = require("path")
|
|
|
|
module.exports = {
|
|
webpack: {
|
|
configure: (webpackConfig) => {
|
|
const instanceOfMiniCssExtractPlugin = webpackConfig.plugins.find(
|
|
(plugin) => plugin.options && plugin.options.ignoreOrder != null,
|
|
);
|
|
if(instanceOfMiniCssExtractPlugin)
|
|
instanceOfMiniCssExtractPlugin.options.ignoreOrder = true;
|
|
|
|
webpackConfig.resolve.alias['react']= path.resolve(__dirname, 'node_modules/react'); // solve 2 react instances
|
|
|
|
|
|
return webpackConfig;
|
|
}
|
|
}
|
|
} |