Skip to content

Commit

Permalink
Minimized package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
c8y3 committed Sep 30, 2022
1 parent 8c6e3f9 commit 74a802d
Show file tree
Hide file tree
Showing 3 changed files with 81 additions and 168 deletions.
6 changes: 0 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,8 @@
"graylog-web-plugin": "file:../graylog2-server/graylog2-web-interface/packages/graylog-web-plugin"
},
"devDependencies": {
"prop-types": "^15.7.2",
"react": "^16.8.6",
"react-confirm-alert": "^2.4.1",
"react-dom": "^16.8.6",
"react-intl": "^2.9.0",
"reflux": "^6.4.1",
"react-bootstrap": "^1.0.1",
"react-router-bootstrap": "^0.25.0",
"react-addons-linked-state-mixin": "^15.6.2",
"@babel/preset-react": "^7.16.7",
"@babel/plugin-transform-runtime": "^7.17.0"
Expand Down
28 changes: 28 additions & 0 deletions src/web/webpack-entry.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
/*
* Copyright (C) 2018 Airbus CyberSecurity (SAS)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the Server Side Public License, version 1,
* as published by MongoDB, Inc.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* Server Side Public License for more details.
*
* You should have received a copy of the Server Side Public License
* along with this program. If not, see
* <http://www.mongodb.com/licensing/server-side-public-license>.
*/
import URI from 'urijs';

import AppConfig from 'util/AppConfig';

// This is the identifier defined in the PluginMetaData (com.airbus_cyber_security.graylog.LoggingAlertMetaData)
const pluginUniqueIdentifier = 'com.airbus-cyber-security.graylog.AlertWizardPlugin';

// The webpack-dev-server serves the assets from "/"
const assetPrefix = AppConfig.gl2DevMode() ? '/' : '/assets/plugin/' + pluginUniqueIdentifier + '/';

// If app prefix was not set, we need to tell webpack to load chunks from root instead of the relative URL path
__webpack_public_path__ = URI.joinPaths(AppConfig.gl2AppPathPrefix(), assetPrefix).path() || assetPrefix;
Loading

0 comments on commit 74a802d

Please sign in to comment.