Add version string
This commit is contained in:
parent
068eff5d13
commit
9d22805fb0
4 changed files with 11 additions and 1 deletions
|
|
@ -24,6 +24,7 @@
|
||||||
"@typescript-eslint/no-unused-vars": ["warn", { "argsIgnorePattern": "^_" }],
|
"@typescript-eslint/no-unused-vars": ["warn", { "argsIgnorePattern": "^_" }],
|
||||||
"@typescript-eslint/no-explicit-any": "off",
|
"@typescript-eslint/no-explicit-any": "off",
|
||||||
"@typescript-eslint/explicit-module-boundary-types": "off",
|
"@typescript-eslint/explicit-module-boundary-types": "off",
|
||||||
"@typescript-eslint/no-non-null-assertion": "off"
|
"@typescript-eslint/no-non-null-assertion": "off",
|
||||||
|
"@typescript-eslint/ban-ts-comment": "off"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -46,6 +46,8 @@ export const getUniversalRenderingContext = (
|
||||||
|
|
||||||
result.insights = {
|
result.insights = {
|
||||||
isWebGL2: result.isWebGL2,
|
isWebGL2: result.isWebGL2,
|
||||||
|
// @ts-ignore: injected by webpack
|
||||||
|
sdf2dVersion: __VERSION__,
|
||||||
extensions: {},
|
extensions: {},
|
||||||
renderPasses: {
|
renderPasses: {
|
||||||
distance: {},
|
distance: {},
|
||||||
|
|
|
||||||
|
|
@ -2,6 +2,7 @@ export interface RendererInfo {
|
||||||
isWebGL2: boolean;
|
isWebGL2: boolean;
|
||||||
vendor?: string;
|
vendor?: string;
|
||||||
renderer?: string;
|
renderer?: string;
|
||||||
|
sdf2dVersion?: string;
|
||||||
extensions: { [name: string]: boolean };
|
extensions: { [name: string]: boolean };
|
||||||
floatInterpolationEnabled?: boolean;
|
floatInterpolationEnabled?: boolean;
|
||||||
programCount?: number;
|
programCount?: number;
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,6 @@
|
||||||
const path = require('path');
|
const path = require('path');
|
||||||
const TerserJSPlugin = require('terser-webpack-plugin');
|
const TerserJSPlugin = require('terser-webpack-plugin');
|
||||||
|
const webpack = require('webpack');
|
||||||
|
|
||||||
const PATHS = {
|
const PATHS = {
|
||||||
entryPoint: path.resolve(__dirname, 'src/main.ts'),
|
entryPoint: path.resolve(__dirname, 'src/main.ts'),
|
||||||
|
|
@ -27,6 +28,11 @@ module.exports = {
|
||||||
'gl-matrix': 'gl-matrix',
|
'gl-matrix': 'gl-matrix',
|
||||||
'resize-observer-polyfill': 'resize-observer-polyfill',
|
'resize-observer-polyfill': 'resize-observer-polyfill',
|
||||||
},
|
},
|
||||||
|
plugins: [
|
||||||
|
new webpack.DefinePlugin({
|
||||||
|
__VERSION__: JSON.stringify(require('./package.json').version),
|
||||||
|
}),
|
||||||
|
],
|
||||||
optimization: {
|
optimization: {
|
||||||
minimize: true,
|
minimize: true,
|
||||||
usedExports: true,
|
usedExports: true,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue