mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2025-03-08 11:29:19 +01:00
Removed import of DevModeEnabled in engine.js. Removed JSON.stringify in webpack.config.js for build mode
This commit is contained in:
@ -24,7 +24,6 @@ import {CONSTANTS} from "./Constants.js";
|
|||||||
import {Programs, displayCreateProgramContent,
|
import {Programs, displayCreateProgramContent,
|
||||||
getNumAvailableCreateProgram,
|
getNumAvailableCreateProgram,
|
||||||
initCreateProgramButtons} from "./CreateProgram.js";
|
initCreateProgramButtons} from "./CreateProgram.js";
|
||||||
import {DevModeEnabled} from "./devmode.js"
|
|
||||||
import {displayFactionContent, joinFaction,
|
import {displayFactionContent, joinFaction,
|
||||||
processPassiveFactionRepGain, Factions,
|
processPassiveFactionRepGain, Factions,
|
||||||
inviteToFaction, initFactions} from "./Faction.js";
|
inviteToFaction, initFactions} from "./Faction.js";
|
||||||
|
@ -5,7 +5,7 @@ module.exports = (env, argv) => ({
|
|||||||
//mode: "development",
|
//mode: "development",
|
||||||
plugins: [
|
plugins: [
|
||||||
new webpack.DefinePlugin({
|
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
|
// http://stackoverflow.com/questions/29080148/expose-jquery-to-real-window-object-with-webpack
|
||||||
new webpack.ProvidePlugin({
|
new webpack.ProvidePlugin({
|
||||||
|
Reference in New Issue
Block a user