fix(build): do not generate sourcemap, fixes #295
This commit is contained in:
@@ -55,7 +55,7 @@ var runCommand = function (command) {
|
|||||||
var executedCommand = (0, child_process_1.spawn)(command, {
|
var executedCommand = (0, child_process_1.spawn)(command, {
|
||||||
stdio: "inherit",
|
stdio: "inherit",
|
||||||
shell: true,
|
shell: true,
|
||||||
env: __assign({ REACT_APP_RADAR_NAME: "AOE Technology Radar", REACT_APP_BUILDHASH: (0, crypto_1.randomBytes)(10).toString("hex") }, process.env),
|
env: __assign({ REACT_APP_RADAR_NAME: "AOE Technology Radar", REACT_APP_BUILDHASH: (0, crypto_1.randomBytes)(10).toString("hex"), GENERATE_SOURCEMAP: "false" }, process.env),
|
||||||
});
|
});
|
||||||
executedCommand.on("error", function (error) {
|
executedCommand.on("error", function (error) {
|
||||||
reject(error);
|
reject(error);
|
||||||
|
|||||||
@@ -15,8 +15,8 @@
|
|||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"prepare": "husky install && npm run build:scripts",
|
"prepare": "husky install && npm run build:scripts",
|
||||||
"start": "react-scripts start",
|
"start": "GENERATE_SOURCEMAP=false react-scripts start",
|
||||||
"build": "react-scripts build",
|
"build": "GENERATE_SOURCEMAP=false react-scripts build",
|
||||||
"build:scripts": "tsc --project tsconfig.scripts.json",
|
"build:scripts": "tsc --project tsconfig.scripts.json",
|
||||||
"test": "react-scripts test --watchAll=false",
|
"test": "react-scripts test --watchAll=false",
|
||||||
"ts:check": "tsc --noEmit",
|
"ts:check": "tsc --noEmit",
|
||||||
|
|||||||
@@ -27,6 +27,7 @@ const runCommand = (command: string) =>
|
|||||||
env: {
|
env: {
|
||||||
REACT_APP_RADAR_NAME: "AOE Technology Radar",
|
REACT_APP_RADAR_NAME: "AOE Technology Radar",
|
||||||
REACT_APP_BUILDHASH: randomBytes(10).toString("hex"),
|
REACT_APP_BUILDHASH: randomBytes(10).toString("hex"),
|
||||||
|
GENERATE_SOURCEMAP: "false",
|
||||||
...process.env,
|
...process.env,
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user