diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2018-04-22 21:32:09 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2018-04-22 21:32:09 +0900 |
| commit | 0b99483ccbb1a4c111177718c0e9300a19d36a28 (patch) | |
| tree | 892645d59eb75cb69e5576df923825b3ceb7e20b /webpack.config.ts | |
| parent | Fix bug (diff) | |
| download | sharkey-0b99483ccbb1a4c111177718c0e9300a19d36a28.tar.gz sharkey-0b99483ccbb1a4c111177718c0e9300a19d36a28.tar.bz2 sharkey-0b99483ccbb1a4c111177718c0e9300a19d36a28.zip | |
サーバーのバージョンとクライアントのバージョンを分けた
Diffstat (limited to 'webpack.config.ts')
| -rw-r--r-- | webpack.config.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/webpack.config.ts b/webpack.config.ts index 50e28972ac..96eaf9f4c8 100644 --- a/webpack.config.ts +++ b/webpack.config.ts @@ -19,7 +19,7 @@ import { licenseHtml } from './src/build/license'; import locales from './locales'; const meta = require('./package.json'); -const version = meta.version; +const version = meta.clientVersion; const codename = meta.codename; //#region Replacer definitions @@ -114,7 +114,7 @@ module.exports = entries.map(x => { 'process.env.NODE_ENV': JSON.stringify(isProduction ? 'production' : 'development') }), new WebpackOnBuildPlugin(stats => { - fs.writeFileSync('./version.json', JSON.stringify({ + fs.writeFileSync('./built/client/meta.json', JSON.stringify({ version }), 'utf-8'); }) |