Skip to content

Commit

Permalink
add env
Browse files Browse the repository at this point in the history
  • Loading branch information
limichange committed Jan 13, 2020
1 parent 383a3a3 commit e0ecf48
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"postinstall": "electron-builder install-app-deps",
"lint": "xo",
"test": "npm run lint",
"start": "run-electron ./source",
"start": "cross-env NODE_ENV=development run-electron ./source",
"build": "next build renderer && next export renderer",
"dist": "npm run build && electron-builder",
"pack": "npm run build && electron-builder --dir",
Expand Down
2 changes: 2 additions & 0 deletions renderer/next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ const withCss = require('./config/withCSS')
const MonacoWebpackPlugin = require('monaco-editor-webpack-plugin')
const isProd = (process.env.NODE_ENV || 'production') === 'production'

console.log(isProd)

module.exports = withCss(
withLess({
lessLoaderOptions: {
Expand Down

0 comments on commit e0ecf48

Please sign in to comment.