ui: fix prismjs loading
This commit is contained in:
parent
92a6379e2c
commit
bc2259aef3
4 changed files with 8 additions and 2 deletions
|
|
@ -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';
|
||||
|
|
|
|||
|
|
@ -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',
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue