ui: fix prismjs loading

This commit is contained in:
nick-delirium 2024-12-16 10:52:06 +01:00
parent 92a6379e2c
commit bc2259aef3
No known key found for this signature in database
GPG key ID: 93ABD695DF5FDBA0
4 changed files with 8 additions and 2 deletions

View file

@ -1,5 +1,5 @@
import './styles/index.css';
import './styles/global.scss'
import './styles/global.css'
import React from 'react';
import { createRoot } from 'react-dom/client';
import './init';

View file

@ -1,6 +1,11 @@
const colors = require('./app/theme/colors');
const defaultColors = require('tailwindcss/colors');
const deprecatedDefaults = ['lightBlue', 'warmGray', 'trueGray', 'coolGray', 'blueGray']
deprecatedDefaults.forEach(color => {
delete defaultColors[color]
})
module.exports = {
content: [
'./app/**/*.tsx',

View file

@ -122,6 +122,7 @@ const config: Configuration = {
},
},
plugins: [
new webpack.ProgressPlugin(),
(isDevelopment ? false : new CompressionPlugin({
test: /\.(js|css|html|svg)$/,
algorithm: 'brotliCompress',
@ -141,7 +142,7 @@ const config: Configuration = {
],
}),
new MiniCssExtractPlugin({ ignoreOrder: true }),
],
],
devtool: isDevelopment ? "inline-source-map" : false,
performance: {
hints: false,