mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
SCSS modules in Features
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
This commit is contained in:
parent
685548cc4b
commit
13f38eb2a1
@ -41,7 +41,5 @@
|
||||
"compilerOptions": {
|
||||
"module": "CommonJS"
|
||||
}
|
||||
},
|
||||
|
||||
"include": ["./styles.d.ts"]
|
||||
}
|
||||
}
|
||||
|
||||
@ -20,6 +20,6 @@
|
||||
"homepage": "https://github.com/lensapp/lens",
|
||||
"dependencies": {
|
||||
"typescript": "^4.9.3",
|
||||
"typescript-plugin-css-modules": "^3.4.0"
|
||||
"typescript-plugin-css-modules": "^5.0.1"
|
||||
}
|
||||
}
|
||||
|
||||
@ -30,7 +30,7 @@ module.exports = ({ entrypointFilePath, outputDirectory }) => ({
|
||||
mode: "write-dts",
|
||||
|
||||
configOverwrite: {
|
||||
include: [entrypointFilePath],
|
||||
include: [entrypointFilePath, './styles.d.ts'],
|
||||
|
||||
compilerOptions: {
|
||||
declaration: true,
|
||||
|
||||
@ -50,7 +50,11 @@ module.exports =
|
||||
options: {
|
||||
sourceMap: false,
|
||||
postcssOptions: {
|
||||
plugins: ["tailwindcss"],
|
||||
plugins: {
|
||||
tailwindcss: {
|
||||
config: {}
|
||||
}
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
17
packages/infrastructure/webpack/src/styles.d.ts
vendored
Normal file
17
packages/infrastructure/webpack/src/styles.d.ts
vendored
Normal file
@ -0,0 +1,17 @@
|
||||
// Support import for custom module extensions
|
||||
// https://www.typescriptlang.org/docs/handbook/modules.html#wildcard-module-declarations
|
||||
|
||||
declare module "*.module.scss" {
|
||||
const classes: { [key: string]: string };
|
||||
export default classes;
|
||||
}
|
||||
|
||||
declare module "*.module.css" {
|
||||
const classes: { [key: string]: string };
|
||||
export default classes;
|
||||
}
|
||||
|
||||
declare module "*.scss" {
|
||||
const content: string;
|
||||
export = content;
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user