Skip to content

Commit 9ef5355

Browse files
committed
fix dotenv usage
1 parent df1f177 commit 9ef5355

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

Diff for: package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "monkey-react-scripts",
3-
"version": "0.0.2",
3+
"version": "0.0.3",
44
"description": "Monkey react script runner",
55
"main": "index.js",
66
"repository": "[email protected]:monkey-patches/monkey-react-scripts.git",

Diff for: scripts/build.js

+2
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ var appPath = require('react-scripts/config/paths').appPath;
55

66
process.env.NODE_ENV = 'production';
77

8+
require('dotenv').config({silent: true});
9+
810
var webpackMonkeyPath = path.resolve(appPath, 'webpack.monkey.js');
911
var webpackConfig = require('react-scripts/config/webpack.config.prod');
1012

Diff for: scripts/start.js

+2
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ var appPath = require('react-scripts/config/paths').appPath;
55

66
process.env.NODE_ENV = 'development';
77

8+
require('dotenv').config({silent: true});
9+
810
var webpackMonkeyPath = path.resolve(appPath, 'webpack.monkey.js');
911
var webpackConfig = require('react-scripts/config/webpack.config.dev');
1012

0 commit comments

Comments
 (0)