summaryrefslogtreecommitdiff
path: root/webpack.config.ts
diff options
context:
space:
mode:
authorAya Morisawa <AyaMorisawa4869@gmail.com>2018-09-01 23:12:51 +0900
committerAya Morisawa <AyaMorisawa4869@gmail.com>2018-09-01 23:12:51 +0900
commit291beb45fcb7a4c856232b12848ebad8267e2840 (patch)
tree8967c4a548ce8a0d19b5e4ef3c8eb37e0d3414d1 /webpack.config.ts
parentfix #2315 (#2339) (diff)
downloadsharkey-291beb45fcb7a4c856232b12848ebad8267e2840.tar.gz
sharkey-291beb45fcb7a4c856232b12848ebad8267e2840.tar.bz2
sharkey-291beb45fcb7a4c856232b12848ebad8267e2840.zip
Use string interpolation
Diffstat (limited to 'webpack.config.ts')
-rw-r--r--webpack.config.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/webpack.config.ts b/webpack.config.ts
index ad67530f51..341d4c7022 100644
--- a/webpack.config.ts
+++ b/webpack.config.ts
@@ -20,7 +20,7 @@ const constants = require('./src/const.json');
const locales = require('./locales');
const meta = require('./package.json');
-const version = meta.clientVersion + '-' + rndstr({ length: 8, chars: '0-9a-z' });
+const version = `${meta.clientVersion}-${rndstr({ length: 8, chars: '0-9a-z' })}`;
const codename = meta.codename;
declare var global: {
@@ -42,7 +42,7 @@ global['collapseSpacesReplacement'] = (html: string) => {
};
global['base64replacement'] = (_: any, key: string) => {
- return fs.readFileSync(__dirname + '/src/client/' + key, 'base64');
+ return fs.readFileSync(`${__dirname}/src/client/${key}`, 'base64');
};
global['i18nReplacement'] = i18nReplacement;