Skip to content

Commit

Permalink
deps, formatting, debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
joemaller committed Jan 25, 2024
1 parent c5f8ae1 commit 750c7de
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
6 changes: 3 additions & 3 deletions lib/AfterDoneReporterPlugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@ export class AfterDoneReporterPlugin {
apply(compiler) {
compiler.hooks.done.tapPromise(this.name, async (stats) => {
if (this.config.echo) {
// console.log(compiler);
// console.log(compiler.options, stats);
const { host, port } = compiler.options.devServer;
const { startTime, endTime, modules, assetsInfo } = stats.compilation;
const hostname = host === "0.0.0.0" ? "localhost" : host;

const time = chalk.yellow.bold(
humanizeDuration(endTime - startTime, { units: ["h", "m", "s"] })
humanizeDuration(endTime - startTime, { units: ["h", "m", "s"] }),
);
const mCount = chalk.yellow(modules.size);
const aCount = chalk.yellow.bold(assetsInfo.size);
Expand All @@ -43,7 +43,7 @@ export class AfterDoneReporterPlugin {
.join("\n" + this.config.prefix + " ");

setTimeout(() =>
console.log("\n" + this.config.prefix + " " + messages)
console.log("\n" + this.config.prefix + " " + messages),
);
}
});
Expand Down
9 changes: 8 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,16 +44,19 @@
"body-parser": "^1.20.2",
"caniuse-lite": "^1.0.30001579",
"chalk": "^5.3.0",
"chalk-cli": "^5.0.1",
"classnames": "^2.5.1",
"cli-truncate": "^4.0.0",
"copy-webpack-plugin": "^12.0.2",
"cosmiconfig": "^9.0.0",
"cross-env": "^7.0.3",
"css-loader": "^6.9.1",
"cssnano": "^6.0.1",
"del": "^7.1.0",
"dotenv": "^16.4.0",
"esbuild": "^0.19.12",
"esbuild-loader": "^4.0.3",
"eslint": "^8.56.0",
"eslint-plugin-react": "^7.33.2",
"filesize": "^10.0.12",
"fs-extra": "^11.1.1",
"globby": "^14.0.0",
Expand All @@ -66,6 +69,7 @@
"node-sass": "^9.0.0",
"postcss": "^8.4.29",
"postcss-loader": "^8.0.0",
"postcss-scss": "^4.0.9",
"prettier": "^3.2.4",
"prettier-eslint": "^16.3.0",
"pretty-hrtime": "^1.0.3",
Expand All @@ -79,6 +83,9 @@
"source-map-explorer": "^2.5.3",
"string-length": "^6.0.0",
"style-loader": "^3.3.3",
"stylelint": "^16.2.0",
"stylelint-order": "^6.0.4",
"stylelint-prettier": "^5.0.0",
"svgo": "^3.0.2",
"svgo-loader": "^4.0.0",
"version-everything": "^0.11.0",
Expand Down

0 comments on commit 750c7de

Please sign in to comment.