Browse Source

Fix build in production

master
Loëck Vézien 7 years ago
parent
commit
d3ff418f91
No known key found for this signature in database GPG Key ID: CBCDCE384E853AC4
  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