mirror of
https://github.com/zhigang1992/create-react-app.git
synced 2026-05-04 21:19:47 +08:00
Removed NODE_PATH from env.js
env.js is only for variables injected into the app.
This commit is contained in:
committed by
Dan Abramov
parent
afe25dfe5c
commit
6e94bd8426
@@ -69,7 +69,7 @@ module.exports = {
|
||||
resolve: {
|
||||
// This allows you to set a root for where webpack should look for modules.
|
||||
// This enables you to use absolute imports from the root.
|
||||
root: path.resolve(env['process.env.NODE_PATH']),
|
||||
root: path.resolve(process.env.NODE_PATH || ''),
|
||||
// These are the reasonable defaults supported by the Node ecosystem.
|
||||
extensions: ['.js', '.json', ''],
|
||||
alias: {
|
||||
|
||||
Reference in New Issue
Block a user