diff --git a/src/template.ts b/src/template.ts index 1b3f1f3..dd8fbcc 100644 --- a/src/template.ts +++ b/src/template.ts @@ -266,6 +266,7 @@ export function packageJsonContent({ "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", @@ -319,6 +320,11 @@ export 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": [