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:
parent
43db944c0d
commit
c62592bf57
@ -66,7 +66,6 @@ import {
|
||||
SHOW_KEYBOARD_SHORTCUTS_EVENT
|
||||
} from '../commands';
|
||||
import { commandPaletteService } from '../commandPaletteService';
|
||||
import './../style.css';
|
||||
|
||||
import { I18nProvider } from '@lingui/react';
|
||||
|
||||
|
@ -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';
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user