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

Relocates and bundles css. #36

Merged
merged 1 commit into from
Aug 5, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions fuse.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const isProduction = process.env.NODE_ENV === 'production'

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

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

Expand Down
2 changes: 2 additions & 0 deletions src/renderer/features/app/app.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import * as React from 'react'
import { CSSProperties } from 'react'
import { WelcomeScreen } from '..'
import './reset.css'
import './app.css'

// this is in place to claim 100% of the viewport and not scroll.
const rootStyle: CSSProperties = { overflow: 'hidden', height: '100vh', display: 'flex' }
Expand Down
4 changes: 0 additions & 4 deletions src/renderer/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,6 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width">
<style>
@import url('./reset.css');
@import url('./keyframes.css');
</style>
</head>

<body>
Expand Down