Skip to content

Commit

Permalink
Added dependencies and renamed files to use stylus for style sheets
Browse files Browse the repository at this point in the history
  • Loading branch information
germainep committed Nov 5, 2020
1 parent 026ab51 commit 7370148
Show file tree
Hide file tree
Showing 8 changed files with 466 additions and 25 deletions.
59 changes: 49 additions & 10 deletions .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,10 @@
"start": "next start"
},
"dependencies": {
"@zeit/next-stylus": "^1.0.1",
"next": "9.5.5",
"react": "17.0.0",
"react-dom": "17.0.0"
"react-dom": "17.0.0",
"stylus": "^0.54.8"
}
}
2 changes: 1 addition & 1 deletion pages/_app.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import '../styles/globals.css'
import '../styles/globals.styl'

function MyApp ( { Component, pageProps } ) {
return <Component { ...pageProps } />
Expand Down
2 changes: 1 addition & 1 deletion pages/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import Head from 'next/head'
import styles from '../styles/Home.module.css'
import styles from '../styles/Home.module.styl'

export default function Home () {
return (
Expand Down
File renamed without changes.
File renamed without changes.
4 changes: 4 additions & 0 deletions styles/next.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
const withStylus = require('@zeit/next-stylus')
module.exports = withStylus({
cssModules: true
})
Loading

0 comments on commit 7370148

Please sign in to comment.