From 94bbe66ddb7ac4e273c41aa4ccda4a1a3ffb05ec Mon Sep 17 00:00:00 2001 From: Gerard Braad Date: Thu, 22 Jun 2023 13:14:03 +0800 Subject: [PATCH] Dark theme works --- src/index.tsx | 2 +- webpack.config.js | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/index.tsx b/src/index.tsx index 29054bd..e3d0cdc 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -1,4 +1,4 @@ -//import "cockpit-dark-theme"; +import "cockpit-dark-theme"; //import "patternfly/patternfly-5-cockpit.scss"; import '@patternfly/react-core/dist/styles/base.css'; diff --git a/webpack.config.js b/webpack.config.js index fdee07b..3008ae8 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -13,7 +13,7 @@ module.exports = { use: [ { loader: 'ts-loader', - options: { + options: { transpileOnly: true, experimentalWatchApi: true, }, @@ -95,6 +95,11 @@ module.exports = { }, resolve: { extensions: ['.tsx', '.ts', '.js'], + modules: ["node_modules", 'pkg/lib'], + alias: { 'font-awesome': 'font-awesome-sass/assets/stylesheets' }, + }, + resolveLoader: { + modules: ["node_modules", 'pkg/lib'], }, plugins: [ new HtmlWebpackPlugin({