diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2019-02-18 18:50:45 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2019-02-18 18:50:45 +0900 |
| commit | 532821d5036143463dae2e798a25b2a5c589ae5b (patch) | |
| tree | 88f4d6fcde58e75ea1eb6229baa66b1cb925542e /webpack.config.ts | |
| parent | 10.87.2 (diff) | |
| download | sharkey-532821d5036143463dae2e798a25b2a5c589ae5b.tar.gz sharkey-532821d5036143463dae2e798a25b2a5c589ae5b.tar.bz2 sharkey-532821d5036143463dae2e798a25b2a5c589ae5b.zip | |
Fix #4309
Close #4311
Diffstat (limited to 'webpack.config.ts')
| -rw-r--r-- | webpack.config.ts | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/webpack.config.ts b/webpack.config.ts index 07a54ec831..4cf30b268e 100644 --- a/webpack.config.ts +++ b/webpack.config.ts @@ -5,7 +5,6 @@ import * as fs from 'fs'; import * as webpack from 'webpack'; import chalk from 'chalk'; -import rndstr from 'rndstr'; const { VueLoaderPlugin } = require('vue-loader'); const WebpackOnBuildPlugin = require('on-build-webpack'); //const HardSourceWebpackPlugin = require('hard-source-webpack-plugin'); @@ -18,7 +17,6 @@ const constants = require('./src/const.json'); const locales = require('./locales'); const meta = require('./package.json'); -const version = isProduction ? meta.version : meta.version + '-' + rndstr({ length: 8, chars: '0-9a-z' }); const codename = meta.codename; const postcss = { @@ -125,7 +123,7 @@ module.exports = { }), new WebpackOnBuildPlugin((stats: any) => { fs.writeFileSync('./built/client/meta.json', JSON.stringify({ - version + version: meta.version }), 'utf-8'); }), new VueLoaderPlugin(), @@ -133,7 +131,7 @@ module.exports = { ], output: { path: __dirname + '/built/client/assets', - filename: `[name].${version}.js`, + filename: `[name].${meta.version}.js`, publicPath: `/assets/` }, resolve: { |