react-webpack-generators / generator-react-webpack

Yeoman generator for ReactJS and Webpack
http://newtriks.com/2013/12/31/automating-react-with-yeoman-and-grunt/
MIT License
2.88k stars 355 forks source link

[Question] config module #214

Closed alexsotocx closed 8 years ago

alexsotocx commented 8 years ago

I want to know how it works, when you are in a component and import the config

let config = require('config'); 

There is no module config or something, how does it recognise where to search? and how does it merge the other config from the config folder?

alexsotocx commented 8 years ago

Never mind... I found it :D Nice way to do the things!. found in cfg/base.js

weblogixx commented 8 years ago

;). You are welcome

v-komarov-parc commented 8 years ago

The question still actual. Can anybody explain how it works?