A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/webpack/css-loader/commit/d2c9c25721a711b0fe041c597b43646e82d9f145 below:

export placeholder · webpack-contrib/css-loader@d2c9c25 · GitHub

@@ -6,10 +6,14 @@ var vm = require("vm");

6 6

function test(name, input, result, query, modules) {

7 7

it(name, function() {

8 8

var output = cssLoader.call({

9 +

options: {

10 +

context: ""

11 +

},

9 12

loaders: [{request: "loader"}],

10 13

loaderIndex: 0,

11 14

context: "",

12 15

resource: "test.css",

16 +

request: "css-loader!test.css",

13 17

query: query

14 18

}, input);

15 19

assetEvaluated(output, result, modules);

@@ -19,10 +23,14 @@ function test(name, input, result, query, modules) {

19 23

function testMinimize(name, input, result, query, modules) {

20 24

it(name, function() {

21 25

var output = cssLoader.call({

26 +

options: {

27 +

context: ""

28 +

},

22 29

loaders: [{request: "loader"}],

23 30

loaderIndex: 0,

24 31

context: "",

25 32

resource: "test.css",

33 +

request: "css-loader!test.css",

26 34

minimize: true,

27 35

query: query

28 36

}, input);

@@ -134,6 +142,18 @@ describe("url", function() {

134 142

test("media query", "@media (min-width: 500px) { body { background: url(image.png); } }", [

135 143

[1, "@media (min-width: 500px) { body { background: url({./image.png}); } }", ""]

136 144

]);

145 +

test("placeholder", ".[className] { background: red; }\n#[someId] { background: green; }\n" +

146 +

".[className] .[subClass] { color: green; }\n#[someId] .[subClass] { color: blue; }", function() { var r = [

147 +

[1, ".ze24205081ae540afa51bd4cce768e8b7 { background: red; }\n#zdf12049771f7fc796a63a3945da3a66d { background: green; }\n" +

148 +

".ze24205081ae540afa51bd4cce768e8b7 .z9f634213cd27594c1a13d18554d47a8c { color: green; }\n#zdf12049771f7fc796a63a3945da3a66d .z9f634213cd27594c1a13d18554d47a8c { color: blue; }", ""]

149 +

];

150 +

r.placeholders = {

151 +

className: "ze24205081ae540afa51bd4cce768e8b7",

152 +

someId: "zdf12049771f7fc796a63a3945da3a66d",

153 +

subClass: "z9f634213cd27594c1a13d18554d47a8c"

154 +

};

155 +

return r;

156 +

}());

137 157

testMinimize("minimized simple", ".class { a: b c d; }", [

138 158

[1, ".class{a:b c d}", ""]

139 159

]);


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4