@@ -114,6 +114,36 @@ public static function provideCompileTests(): iterable
114
114
'expectedOutput ' => 'body { background: url("https://cdn.io/images/bar.png"); } ' ,
115
115
'expectedDependencies ' => [],
116
116
];
117
+
118
+ yield 'ignore_comments ' => [
119
+ 'input ' => 'body { background: url("images/foo.png"); /* background: url("images/bar.png"); */ } ' ,
120
+ 'expectedOutput ' => 'body { background: url("images/foo.123456.png"); /* background: url("images/bar.png"); */ } ' ,
121
+ 'expectedDependencies ' => ['images/foo.png ' ],
122
+ ];
123
+
124
+ yield 'ignore_comment_after_rule ' => [
125
+ 'input ' => 'body { background: url("images/foo.png"); } /* url("images/need-ignore.png") */ ' ,
126
+ 'expectedOutput ' => 'body { background: url("images/foo.123456.png"); } /* url("images/need-ignore.png") */ ' ,
127
+ 'expectedDependencies ' => ['images/foo.png ' ],
128
+ ];
129
+
130
+ yield 'ignore_comment_within_rule ' => [
131
+ 'input ' => 'body { background: url("images/foo.png") /* url("images/need-ignore.png") */; } ' ,
132
+ 'expectedOutput ' => 'body { background: url("images/foo.123456.png") /* url("images/need-ignore.png") */; } ' ,
133
+ 'expectedDependencies ' => ['images/foo.png ' ],
134
+ ];
135
+
136
+ yield 'ignore_multiline_comment_after_rule ' => [
137
+ 'input ' => 'body {
138
+ background: url("images/foo.png"); /*
139
+ url("images/need-ignore.png") */
140
+ } ' ,
141
+ 'expectedOutput ' => 'body {
142
+ background: url("images/foo.123456.png"); /*
143
+ url("images/need-ignore.png") */
144
+ } ' ,
145
+ 'expectedDependencies ' => ['images/foo.png ' ],
146
+ ];
117
147
}
118
148
119
149
public function testCompileFindsRelativeFilesViaSourcePath ()
0 commit comments