git webpack prod config
parent
4a3c0bd1e4
commit
fca217347f
|
@ -4,7 +4,7 @@ import React from 'react'
|
|||
import { createStore, applyMiddleware } from 'redux'
|
||||
import { Provider } from 'react-redux'
|
||||
import { reducer } from './reducer'
|
||||
import logger from 'redux-logger'
|
||||
// import logger from 'redux-logger'
|
||||
|
||||
import { Tree } from './tree'
|
||||
import { NavBar } from './navBar'
|
||||
|
|
|
@ -8,8 +8,8 @@ module.exports = merge(common, {
|
|||
mode: 'production',
|
||||
plugins: [
|
||||
new webpack.DefinePlugin({
|
||||
// 'process.env.NODE_ENV': JSON.stringify(process.env.NODE_ENV)
|
||||
'process.env.NODE_ENV': 'production'
|
||||
'process.env.NODE_ENV': JSON.stringify('production')
|
||||
// 'process.env.NODE_ENV': 'production'
|
||||
}),
|
||||
new webpack.IgnorePlugin(/redux-logger/)
|
||||
]
|
||||
|
|
Loading…
Reference in New Issue