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