mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-17 17:36:08 +08:00
ui: add packtracker
This commit is contained in:
1 parent
f83af97ac0
commit
d8319cb9b0
4 files changed
+9
-1
No files matched your search
@@ -11,6 +11,7 @@ import CopyWebpackPlugin from 'copy-webpack-plugin';
|
||||
import { BundleAnalyzerPlugin } from 'webpack-bundle-analyzer';
|
||||
import SpeedMeasurePlugin from 'speed-measure-webpack-plugin';
|
||||
import WebpackBar from 'webpackbar';
|
||||
import PacktrackerPlugin from '@packtracker/webpack-plugin';
|
||||
import mapWebpackUrlPrefix from '../utils/mapWebpackUrlPrefix';
|
||||
import root from '../utils/root';
|
||||
|
||||
@@ -232,6 +233,11 @@ export default function (env = {}) {
|
||||
}],
|
||||
}),
|
||||
...env.measure ? [new BundleAnalyzerPlugin({ analyzerPort: 'auto' })] : [],
|
||||
...process.env.PT_PROJECT_TOKEN ? [new PacktrackerPlugin({
|
||||
project_token: process.env.PT_PROJECT_TOKEN,
|
||||
upload: true,
|
||||
fail_build: false,
|
||||
})] : [],
|
||||
],
|
||||
};
|
||||
|
||||
|
||||
@@ -20,6 +20,7 @@
|
||||
"@fontsource/source-code-pro": "^4.5.10",
|
||||
"@fontsource/ubuntu-mono": "^4.5.10",
|
||||
"@hydrooj/utils": "workspace:*",
|
||||
"@packtracker/webpack-plugin": "^2.3.0",
|
||||
"@types/gulp-if": "^0.0.34",
|
||||
"@types/jquery": "^3.5.14",
|
||||
"@types/json-schema": "^7.0.11",
|
||||
|
||||
@@ -79,5 +79,6 @@
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
{% block script %}{% endblock %}
|
||||
</body>
|
||||
</html>
|
||||
@@ -2,7 +2,7 @@ import { inspect } from 'util';
|
||||
|
||||
declare global {
|
||||
interface StringConstructor {
|
||||
random: (digit?: number) => string;
|
||||
random: (digit?: number, dict?: string) => string;
|
||||
}
|
||||
interface String {
|
||||
format: (...args: Array<any>) => string;
|
||||
|
||||
Reference in new issue
Block a user