git webpack prod config

master
howard 2021-04-19 00:36:06 -07:00
parent 4a3c0bd1e4
commit fca217347f
2 changed files with 3 additions and 3 deletions

View File

@ -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'

View File

@ -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/)
] ]