diff --git a/lib/AfterDoneReporterPlugin.js b/lib/AfterDoneReporterPlugin.js index 5f96464..e171c29 100644 --- a/lib/AfterDoneReporterPlugin.js +++ b/lib/AfterDoneReporterPlugin.js @@ -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); @@ -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), ); } }); diff --git a/package.json b/package.json index 829368b..6a2a02c 100644 --- a/package.json +++ b/package.json @@ -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", @@ -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", @@ -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",