1
0
mirror of https://github.com/chinchang/web-maker.git synced 2025-05-11 12:55:22 +02:00

Remove stylesheets from html and include in js

The stylesheets that were linked in the index.html were redundant, as
they were already bundled by the webpack. The style.css was again imported in
the components/app.jsx. Now, it is placed in the index.js in a
order that style.css overrides the other stylesheets.
This commit is contained in:
Arnab Sen 2022-03-11 20:05:28 +05:30
parent 43db944c0d
commit c62592bf57
No known key found for this signature in database
GPG Key ID: 255D0564BAEA8F9D
3 changed files with 1 additions and 14 deletions

View File

@ -66,7 +66,6 @@ import {
SHOW_KEYBOARD_SHORTCUTS_EVENT
} from '../commands';
import { commandPaletteService } from '../commandPaletteService';
import './../style.css';
import { I18nProvider } from '@lingui/react';

View File

@ -35,25 +35,12 @@
}
</style>
<!-- build:css vendor.css -->
<link rel="stylesheet" href="lib/codemirror/lib/codemirror.css" />
<link rel="stylesheet" href="lib/codemirror/addon/hint/show-hint.css" />
<link rel="stylesheet" href="lib/codemirror/addon/fold/foldgutter.css" />
<link rel="stylesheet" href="lib/codemirror/addon/dialog/dialog.css" />
<link rel="stylesheet" href="lib/hint.min.css" />
<link rel="stylesheet" href="lib/inlet.css" />
<!-- endbuild -->
<link
rel="stylesheet"
id="editorThemeLinkTag"
href="lib/codemirror/theme/monokai.css"
/>
<!-- build:css style.css -->
<link rel="stylesheet" href="style.css" />
<!-- endbuild -->
<style id="fontStyleTemplate" type="template">
@font-face {
font-family: 'fontname';

View File

@ -6,5 +6,6 @@ import './lib/codemirror/addon/fold/foldgutter.css';
import './lib/codemirror/addon/dialog/dialog.css';
import './lib/hint.min.css';
import './lib/inlet.css';
import './style.css';
export default App;