Add version string
This commit is contained in:
parent
068eff5d13
commit
9d22805fb0
4 changed files with 11 additions and 1 deletions
|
|
@ -1,5 +1,6 @@
|
|||
const path = require('path');
|
||||
const TerserJSPlugin = require('terser-webpack-plugin');
|
||||
const webpack = require('webpack');
|
||||
|
||||
const PATHS = {
|
||||
entryPoint: path.resolve(__dirname, 'src/main.ts'),
|
||||
|
|
@ -27,6 +28,11 @@ module.exports = {
|
|||
'gl-matrix': 'gl-matrix',
|
||||
'resize-observer-polyfill': 'resize-observer-polyfill',
|
||||
},
|
||||
plugins: [
|
||||
new webpack.DefinePlugin({
|
||||
__VERSION__: JSON.stringify(require('./package.json').version),
|
||||
}),
|
||||
],
|
||||
optimization: {
|
||||
minimize: true,
|
||||
usedExports: true,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue