Updated next config to not need node-sass in production

This commit is contained in:
JJ Kasper
2018-06-02 14:22:34 -05:00
parent 2929827618
commit e72fd02514
19 changed files with 56 additions and 47 deletions

View File

@@ -2,7 +2,10 @@ import App, { Container } from 'next/app'
import store from '../redux/store'
import { Provider } from 'react-redux'
import { setUser, doLogin } from '../redux/actions/userAct'
import '../styles/style.sass'
// Don't load sass during ssr
if (!global.kbConf) {
require('../styles/style.sass')
}
const ssr = typeof window === 'undefined'
export default class MyApp extends App {