Skip to content

Commit 9a6dc62

Browse files
authored
Merge pull request #4011 from dlabrecq/static
Replace require with import
2 parents 318e8f9 + 2d1dc5e commit 9a6dc62

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
"start:hmr": "HMR=true npm start",
3636
"start:local:api": "LOCAL_API_PORT=8000 LOCAL_API_HOST=localhost KEYCLOAK_PORT=4020 npm start",
3737
"start:mfe": "FEC_STATIC_PORT=8003 npm run start",
38+
"start:static": "fec static --port=8004",
3839
"stats": "npm run build:prod --profile --json > stats.json",
3940
"test": "jest --no-cache",
4041
"test:clean": "jest --clearCache",

src/appEntry.tsx

+5-6
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
/* eslint-disable no-console */
2+
// Todo: Uncomment for use with non-shared PatternFly packages
3+
// import '@patternfly/patternfly/patternfly.css';
4+
import '@patternfly/patternfly/patternfly-addons.css';
5+
import './styles/global.css';
6+
27
import NotificationsPortal from '@redhat-cloud-services/frontend-components-notifications/NotificationPortal';
38
import IntlProvider from '@redhat-cloud-services/frontend-components-translations/Provider';
49
import { getLocale } from 'components/i18n';
@@ -10,12 +15,6 @@ import messages from '../locales/data.json';
1015
import App from './app';
1116
import { configureStore } from './store';
1217

13-
// Todo: Uncomment for use with non-shared PatternFly packages
14-
// require.resolve('@patternfly/patternfly/patternfly.css');
15-
require.resolve('@patternfly/patternfly/patternfly-addons.css');
16-
17-
import './styles/global.css';
18-
1918
const costStore = configureStore({
2019
// session: {
2120
// token: getToken(),

0 commit comments

Comments
 (0)