Skip to content

Commit

Permalink
fix dotenv again
Browse files Browse the repository at this point in the history
  • Loading branch information
smmoosavi committed Mar 6, 2017
1 parent 9ef5355 commit aedd79f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "monkey-react-scripts",
"version": "0.0.3",
"version": "0.0.5",
"description": "Monkey react script runner",
"main": "index.js",
"repository": "git@github.com:monkey-patches/monkey-react-scripts.git",
Expand Down
4 changes: 2 additions & 2 deletions scripts/build.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
var fs = require('fs');
var path = require('path');
var chalk = require('chalk');
var appPath = require('react-scripts/config/paths').appPath;

process.env.NODE_ENV = 'production';

require('dotenv').config({silent: true});

var chalk = require('chalk');
var appPath = require('react-scripts/config/paths').appPath;
var webpackMonkeyPath = path.resolve(appPath, 'webpack.monkey.js');
var webpackConfig = require('react-scripts/config/webpack.config.prod');

Expand Down
4 changes: 2 additions & 2 deletions scripts/start.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
var fs = require('fs');
var path = require('path');
var chalk = require('chalk');
var appPath = require('react-scripts/config/paths').appPath;

process.env.NODE_ENV = 'development';

require('dotenv').config({silent: true});

var chalk = require('chalk');
var appPath = require('react-scripts/config/paths').appPath;
var webpackMonkeyPath = path.resolve(appPath, 'webpack.monkey.js');
var webpackConfig = require('react-scripts/config/webpack.config.dev');

Expand Down

0 comments on commit aedd79f

Please sign in to comment.