From b774ef23a69d168100ca4e19259d5e1405b5614b Mon Sep 17 00:00:00 2001 From: Xc Date: Mon, 4 Nov 2024 21:06:56 +0800 Subject: [PATCH] build --- lib/template.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/template.js b/lib/template.js index cd50b87..3adf00f 100644 --- a/lib/template.js +++ b/lib/template.js @@ -248,6 +248,7 @@ function packageJsonContent({ name, version, description, cliName, cliBinName, i "tsc-alias": "^1.8.2", "tslib": "^2.4.0", "typescript": "^5.2.2", + "typescript-plugin-css-modules": "^5.1.0", "ui-extract-webpack-plugin": "^1.0.0", "web-vitals": "^2.1.4", "webpack": "^5.86.0", @@ -301,6 +302,11 @@ function tsConfigJsonContent() { "dom.iterable", "esnext" ], + "plugins": [ + { + "name": "typescript-plugin-css-modules", + } + ], //"outDir": "lib", /* Redirect output structure to the directory. */ //"rootDir": "src", /* Specify the root directory of input files. Use to control the output directory structure with --outDir. */ "types": [