Created
May 16, 2019 09:43
-
-
Save hesselbom/4a3dc03acae33c14a3bc2530f6d6b821 to your computer and use it in GitHub Desktop.
Issue with preact build
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import './style' | |
import Home from './routes/Home' | |
export default () => <Home /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"scripts": { | |
"build": "preact build" | |
}, | |
"dependencies": { | |
"preact-cli": "3.0.0-rc.1", | |
"preact-render-to-string": "5.0.3", | |
"preact": "10.0.0-beta.1" | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.home { font-size: 20px } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import s from './Home.css' | |
export default () => <h1 class={s.home}>Home</h1> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
html { background: blue } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
routes__Home.css = routes/Home.css
routes__Home.js = routes/Home.js