Skip to content
This repository has been archived by the owner on Sep 11, 2018. It is now read-only.

Fix webpack client config #32

Merged
merged 1 commit into from
Aug 25, 2015
Merged

Fix webpack client config #32

merged 1 commit into from
Aug 25, 2015

Conversation

nuragic
Copy link
Contributor

@nuragic nuragic commented Aug 25, 2015

Hi!

The require call was failing due to an extra space so, I just added a .trim()... 😄

This is my npm script that was raising the error (I'm on Windows right now):

"deploy": "SET NODE_ENV=production && npm run test && npm run compile"

Thanks!

dvdzkwsk pushed a commit that referenced this pull request Aug 25, 2015
Fix webpack client config spacing
@dvdzkwsk dvdzkwsk merged commit 41da02e into dvdzkwsk:master Aug 25, 2015
@dvdzkwsk
Copy link
Owner

Oh awesome, thanks so much! I never even thought about that.

Merged.

@nuragic
Copy link
Contributor Author

nuragic commented Aug 25, 2015

Thanks!

@nuragic
Copy link
Contributor Author

nuragic commented Aug 28, 2015

@davezuko Man, I just realized that it wasn't such a good fix... the .trim() call should be placed in this line:

https://github.com/davezuko/react-redux-starter-kit/blob/master/config/index.js#L1

Otherwise, (on windows AFAIK) you get this output:

process.env.NODE_ENV // "production " 
process.env.NODE_ENV === 'development' // false
process.env.NODE_ENV === 'production' // false

I'll send another PR to fix that, it's ok?

@dvdzkwsk
Copy link
Owner

Yeah sure. Is this just a Windows issue then? Because I've yet to have trouble on OSX/Ubuntu.

@nuragic
Copy link
Contributor Author

nuragic commented Aug 28, 2015

Ok I'll send it! Yes, I suppose it's just a windows issue... -.-

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants