Skip to content

Commit 9947f33

Browse files
committed
fix(typescript): add missing module def for less and scss files
1 parent cdd50fd commit 9947f33

File tree

2 files changed

+19
-2
lines changed

2 files changed

+19
-2
lines changed

app-min/src/resource.d.ts__if_typescript

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,25 @@ declare module '*.css' {
1616
const value: Record<string, string>;
1717
export default value;
1818
}
19+
// @if less
20+
declare module '*.less' {
21+
const value: Record<string, string>;
22+
export default value;
23+
}
24+
// @endif
25+
// @if sass
26+
declare module '*.scss' {
27+
const value: Record<string, string>;
28+
export default value;
29+
}
30+
// @endif
1931
// @endif
2032
// @if !css-module
21-
declare module '*.css'
33+
declare module '*.css';
34+
// @if less
35+
declare module '*.less';
36+
// @endif
37+
// @if sass
38+
declare module '*.scss';
39+
// @endif
2240
// @endif

webpack/webpack.config.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,6 @@ module.exports = function(env/* @if jasmine || tape || mocha*/, { runTest }/* @e
9191
use: [ 'to-string-loader', cssLoader, postcssLoader/* @if less */, 'less-loader'/* @endif *//* @if sass */, sassLoader/* @endif */ ]
9292
},
9393
// @endif
94-
9594
// @if babel
9695
{ test: /\.js$/i, use: ['babel-loader', '@aurelia/webpack-loader'], exclude: /node_modules/ },
9796
// @endif

0 commit comments

Comments
 (0)