Skip to content
This repository was archived by the owner on Jun 5, 2019. It is now read-only.

Commit e64ce5e

Browse files
authored
Merge pull request #36 from skellock/relocate-css
Relocates and bundles css.
2 parents 76d24d3 + ab49058 commit e64ce5e

File tree

5 files changed

+4
-6
lines changed

5 files changed

+4
-6
lines changed

fuse.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const isProduction = process.env.NODE_ENV === 'production'
1010

1111
// copy the renderer's html file into the right place
1212
Sparky.task('copy-html', () => {
13-
return Sparky.src('src/renderer/{index.html,*.css}').dest(`${OUTPUT_DIR}/$name`)
13+
return Sparky.src('src/renderer/index.html').dest(`${OUTPUT_DIR}/$name`)
1414
})
1515

1616
// the default task
@@ -41,7 +41,7 @@ Sparky.task('default', ['copy-html'], () => {
4141
// bundle the electron renderer code
4242
const rendererBundle = fuse
4343
.bundle('renderer')
44-
.instructions('> [renderer/index.tsx]')
44+
.instructions('> [renderer/index.tsx] +fuse-box-css')
4545
.plugin(CSSPlugin())
4646
.plugin(CopyPlugin({ useDefault: true, files: ASSETS, dest: 'assets', resolve: 'assets/' }))
4747

File renamed without changes.

src/renderer/features/app/app.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
import * as React from 'react'
22
import { CSSProperties } from 'react'
33
import { WelcomeScreen } from '..'
4+
import './reset.css'
5+
import './app.css'
46

57
// this is in place to claim 100% of the viewport and not scroll.
68
const rootStyle: CSSProperties = { overflow: 'hidden', height: '100vh', display: 'flex' }
File renamed without changes.

src/renderer/index.html

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,6 @@
44
<head>
55
<meta charset="UTF-8">
66
<meta name="viewport" content="width=device-width">
7-
<style>
8-
@import url('./reset.css');
9-
@import url('./keyframes.css');
10-
</style>
117
</head>
128

139
<body>

0 commit comments

Comments
 (0)