Browse Source

Merge pull request #62 from loeck/master

Fix build in production
master
Loëck Vézien 7 years ago
committed by GitHub
parent
commit
b87b0c1681
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      src/env.js
  2. 2
      src/main/index.js
  3. 2
      src/renderer/index.js

4
src/env.js

@ -0,0 +1,4 @@
process.env = {
...process.env,
NODE_ENV: (process.env || {}).NODE_ENV || 'production',
}

2
src/main/index.js

@ -1,5 +1,7 @@
// @flow
require('env')
process.setMaxListeners(0)
require('../globals')

2
src/renderer/index.js

@ -1,5 +1,7 @@
// @flow
import 'env'
import React from 'react'
import Raven from 'raven-js'
import { render } from 'react-dom'

Loading…
Cancel
Save