Skip to content

Commit 6aca371

Browse files
committed
refactor: Get semantic-ui styles from CDN...
This seems to be easiest way to reduce bundle size for now. Once I figure out how tree shaking works in css, I'll try different solution. Also ad favicon.ico...
1 parent f5221a9 commit 6aca371

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

public/assets/favicon.ico

3.78 KB
Binary file not shown.

public/index.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
<meta name="viewport" content="width=device-width, initial-scale=1.0">
77
<meta http-equiv="X-UA-Compatible" content="ie=edge">
88
<title>Solvoyo To-Do (React)</title>
9+
<link rel="stylesheet" href="//cdn.jsdelivr.net/npm/semantic-ui@2.4.2/dist/semantic.min.css" />
10+
<link rel="icon" href="./assets/favicon.ico">
911
</head>
1012

1113
<body>
@@ -14,7 +16,6 @@
1416
<noscript>
1517
You need to enable JavaScript to run this app.
1618
</noscript>
17-
<script src="../dist/bundle.js"></script>
1819
</body>
1920

2021
</html>

src/index.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@ import './granimjs/granimInstance.css';
77
import TodoApp from './components/TodoApp';
88

99
import './index.sass';
10-
import 'semantic-ui-css/semantic.min.css';
10+
import '../public/assets/favicon.ico';
1111

1212
ReactDOM.render(<TodoApp />, document.getElementById('root'));

0 commit comments

Comments
 (0)