Removed import of DevModeEnabled in engine.js. Removed JSON.stringify in webpack.config.js for build mode

This commit is contained in:
danielyxie 2018-06-13 14:26:15 -05:00
parent 89016aeed9
commit d6620da22e
2 changed files with 1 additions and 2 deletions

@ -24,7 +24,6 @@ import {CONSTANTS} from "./Constants.js";
import {Programs, displayCreateProgramContent,
getNumAvailableCreateProgram,
initCreateProgramButtons} from "./CreateProgram.js";
import {DevModeEnabled} from "./devmode.js"
import {displayFactionContent, joinFaction,
processPassiveFactionRepGain, Factions,
inviteToFaction, initFactions} from "./Faction.js";

@ -5,7 +5,7 @@ module.exports = (env, argv) => ({
//mode: "development",
plugins: [
new webpack.DefinePlugin({
'process.env.NODE_ENV': argv.mode === 'development' ? JSON.stringify('development') : JSON.stringify('production')
'process.env.NODE_ENV': argv.mode === 'development' ? "\"development\"" : "\"production\""
}),
// http://stackoverflow.com/questions/29080148/expose-jquery-to-real-window-object-with-webpack
new webpack.ProvidePlugin({