Rename to hkt.sh

This commit is contained in:
mango
2026-03-21 01:10:53 +08:00
parent 76a263d0f9
commit 8f1171fe99
6676 changed files with 1724268 additions and 0 deletions

48
node_modules/chrome-remote-interface/webpack.config.js generated vendored Normal file
View File

@@ -0,0 +1,48 @@
'use strict';
const TerserPlugin = require('terser-webpack-plugin');
const webpack = require('webpack');
function criWrapper(_, options, callback) {
window.criRequest(options, callback); // eslint-disable-line no-undef
}
module.exports = {
mode: 'production',
resolve: {
fallback: {
'util': require.resolve('util/'),
'url': require.resolve('url/'),
'http': false,
'https': false,
'dns': false
},
alias: {
'ws': './websocket-wrapper.js'
}
},
externals: [
{
'./external-request.js': `var (${criWrapper})`
}
],
plugins: [
new webpack.ProvidePlugin({
process: 'process/browser',
}),
],
optimization: {
minimizer: [
new TerserPlugin({
extractComments: false,
})
],
},
entry: ['babel-polyfill', './index.js'],
output: {
path: __dirname,
filename: 'chrome-remote-interface.js',
libraryTarget: process.env.TARGET || 'commonjs2',
library: 'CDP'
}
};