Dark theme works

main
Gerard Braad 2023-06-22 13:14:03 +08:00
parent 9b9850e5d7
commit 94bbe66ddb
2 changed files with 7 additions and 2 deletions

View File

@ -1,4 +1,4 @@
//import "cockpit-dark-theme"; import "cockpit-dark-theme";
//import "patternfly/patternfly-5-cockpit.scss"; //import "patternfly/patternfly-5-cockpit.scss";
import '@patternfly/react-core/dist/styles/base.css'; import '@patternfly/react-core/dist/styles/base.css';

View File

@ -13,7 +13,7 @@ module.exports = {
use: [ use: [
{ {
loader: 'ts-loader', loader: 'ts-loader',
options: { options: {
transpileOnly: true, transpileOnly: true,
experimentalWatchApi: true, experimentalWatchApi: true,
}, },
@ -95,6 +95,11 @@ module.exports = {
}, },
resolve: { resolve: {
extensions: ['.tsx', '.ts', '.js'], extensions: ['.tsx', '.ts', '.js'],
modules: ["node_modules", 'pkg/lib'],
alias: { 'font-awesome': 'font-awesome-sass/assets/stylesheets' },
},
resolveLoader: {
modules: ["node_modules", 'pkg/lib'],
}, },
plugins: [ plugins: [
new HtmlWebpackPlugin({ new HtmlWebpackPlugin({