1
0
mirror of https://github.com/tobspr/shapez.io.git synced 2026-09-25 21:37:20 +00:00

Adjustments to support chinese versions

This commit is contained in:
Tobias Springer
2021-03-09 10:07:19 +01:00
parent e53ec8d6af
commit 1ee03d7398
24 changed files with 422 additions and 294 deletions

View File

@@ -6,7 +6,7 @@ const { getRevision, getVersion, getAllResourceImages } = require("./buildutils"
const lzString = require("lz-string");
const CircularDependencyPlugin = require("circular-dependency-plugin");
module.exports = ({ watch = false, standalone = false }) => {
module.exports = ({ watch = false, standalone = false, chineseVersion = false }) => {
return {
mode: "development",
devtool: "cheap-source-map",
@@ -34,6 +34,7 @@ module.exports = ({ watch = false, standalone = false }) => {
G_TRACKING_ENDPOINT: JSON.stringify(
lzString.compressToEncodedURIComponent("http://localhost:10005/v1")
),
G_CHINA_VERSION: JSON.stringify(chineseVersion),
G_IS_DEV: "true",
G_IS_RELEASE: "false",
G_IS_MOBILE_APP: "false",