File tree 6 files changed +5
-23
lines changed
develop/webpack/plugin-css
6 files changed +5
-23
lines changed Original file line number Diff line number Diff line change @@ -65,5 +65,4 @@ __TEST__
65
65
/playwright-report /
66
66
/blob-report /
67
67
/playwright /.cache /
68
- /e2e-report /
69
- _examples
68
+ /e2e-report /
Original file line number Diff line number Diff line change @@ -20,7 +20,3 @@ interface ImportMetaEnv {
20
20
interface ImportMeta {
21
21
readonly env : ImportMetaEnv
22
22
}
23
-
24
- interface Window {
25
- __EXTENSION_SHADOW_ROOT__ : ShadowRoot
26
- }
Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ import {isUsingTailwind} from './css-tools/tailwind'
5
5
import { isUsingSass } from './css-tools/sass'
6
6
import { isUsingLess } from './css-tools/less'
7
7
import { maybeUsePostCss } from './css-tools/postcss'
8
+ // import {isUsingVue} from '../plugin-js-frameworks/js-tools/vue'
8
9
9
10
export interface StyleLoaderOptions {
10
11
mode : DevOptions [ 'mode' ]
Original file line number Diff line number Diff line change @@ -59,7 +59,7 @@ export async function maybeUseLess(
59
59
test : / \. l e s s $ / ,
60
60
oneOf : [
61
61
{
62
- resourceQuery : / i n l i n e _ s t y l e / ,
62
+ resourceQuery : / i s _ c o n t e n t _ c s s _ i m p o r t = t r u e / ,
63
63
use : await commonStyleLoaders ( projectPath , {
64
64
loader : 'less-loader' ,
65
65
mode,
Original file line number Diff line number Diff line change @@ -70,7 +70,7 @@ export async function maybeUseSass(
70
70
exclude : / \. m o d u l e \. ( s ( a | c ) s s ) $ / ,
71
71
oneOf : [
72
72
{
73
- resourceQuery : / i n l i n e _ s t y l e / ,
73
+ resourceQuery : / i s _ c o n t e n t _ c s s _ i m p o r t = t r u e / ,
74
74
use : await commonStyleLoaders ( projectPath , {
75
75
loader : 'sass-loader' ,
76
76
mode,
@@ -90,7 +90,7 @@ export async function maybeUseSass(
90
90
test : / \. m o d u l e \. ( s ( a | c ) s s ) $ / ,
91
91
oneOf : [
92
92
{
93
- resourceQuery : / i n l i n e _ s t y l e / ,
93
+ resourceQuery : / i s _ c o n t e n t _ c s s _ i m p o r t = t r u e / ,
94
94
use : await commonStyleLoaders ( projectPath , {
95
95
loader : 'sass-loader' ,
96
96
mode,
Original file line number Diff line number Diff line change @@ -36,13 +36,6 @@ export class CssPlugin {
36
36
test : / \. c s s $ / ,
37
37
exclude : / \. m o d u l e \. c s s $ / ,
38
38
oneOf : [
39
- {
40
- resourceQuery : / i n l i n e _ s t y l e / ,
41
- use : await commonStyleLoaders ( projectPath , {
42
- mode : mode as 'development' | 'production' ,
43
- useMiniCssExtractPlugin : false
44
- } )
45
- } ,
46
39
{
47
40
use : await commonStyleLoaders ( projectPath , {
48
41
mode : mode as 'development' | 'production' ,
@@ -54,13 +47,6 @@ export class CssPlugin {
54
47
{
55
48
test : / \. m o d u l e \. c s s $ / ,
56
49
oneOf : [
57
- {
58
- resourceQuery : / i n l i n e _ s t y l e / ,
59
- use : await commonStyleLoaders ( projectPath , {
60
- mode : mode as 'development' | 'production' ,
61
- useMiniCssExtractPlugin : false
62
- } )
63
- } ,
64
50
{
65
51
use : await commonStyleLoaders ( projectPath , {
66
52
mode : mode as 'development' | 'production' ,
You can’t perform that action at this time.
0 commit comments