Skip to content

Commit c464a5c

Browse files
committed
Fix SASS/LESS tests
1 parent 685982c commit c464a5c

File tree

2 files changed

+1
-10
lines changed

2 files changed

+1
-10
lines changed

programs/develop/webpack/plugin-css/css-tools/less.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,6 @@ export async function maybeUseLess(
5757
return [
5858
{
5959
test: /\.less$/,
60-
// Set to 'css/auto' if you want to support '*.module.less'
61-
// as CSS Modules, otherwise set type to 'css'
62-
type: 'css/auto',
6360
oneOf: [
6461
{
6562
resourceQuery: /inline_style/,
@@ -81,8 +78,7 @@ export async function maybeUseLess(
8178
]
8279
},
8380
{
84-
test: /\.module\.(s(a|c)ss)$/,
85-
// Set to 'css/auto' if you want to support '*.module.less' as CSS Modules, otherwise set type to 'css'
81+
test: /\.module\.less$/,
8682
type: 'css/auto',
8783
oneOf: [
8884
{

programs/develop/webpack/plugin-css/css-tools/sass.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,6 @@ export async function maybeUseSass(
6767
return [
6868
{
6969
test: /\.(s(a|c)ss)$/,
70-
// Set to 'css/auto' if you want to support '*.module.less'
71-
// as CSS Modules, otherwise set type to 'css'
72-
type: 'css',
7370
exclude: /\.module\.(s(a|c)ss)$/,
7471
oneOf: [
7572
{
@@ -93,8 +90,6 @@ export async function maybeUseSass(
9390
},
9491
{
9592
test: /\.module\.(s(a|c)ss)$/,
96-
// Set to 'css/auto' if you want to support '*.module.less'
97-
// as CSS Modules, otherwise set type to 'css'
9893
type: 'css/auto',
9994
oneOf: [
10095
{

0 commit comments

Comments
 (0)