1. Module bundling added to reduce server calls as each file was taking ~440 ms to load on public server.\n2. JavaScript lib files refactored with OOP for use with module bundling.
This commit is contained in:
5
node_modules/@webpack-cli/info/lib/index.d.ts
generated
vendored
Normal file
5
node_modules/@webpack-cli/info/lib/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
import { type IWebpackCLI } from "webpack-cli";
|
||||
declare class InfoCommand {
|
||||
apply(cli: IWebpackCLI): Promise<void>;
|
||||
}
|
||||
export default InfoCommand;
|
||||
17
node_modules/@webpack-cli/info/lib/index.js
generated
vendored
Normal file
17
node_modules/@webpack-cli/info/lib/index.js
generated
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
class InfoCommand {
|
||||
async apply(cli) {
|
||||
await cli.makeCommand({
|
||||
name: "info",
|
||||
alias: "i",
|
||||
description: "Outputs information about your system.",
|
||||
usage: "[options]",
|
||||
pkg: "@webpack-cli/info",
|
||||
}, cli.getInfoOptions(), async (options) => {
|
||||
const info = await cli.getInfoOutput(options);
|
||||
cli.logger.raw(info);
|
||||
});
|
||||
}
|
||||
}
|
||||
exports.default = InfoCommand;
|
||||
Reference in New Issue
Block a user