Skip to content

Commit e0c4b19

Browse files
committedJan 26, 2018
fix(options): support passing a {Function} (options.insertInto)
1 parent ac8430c commit e0c4b19

File tree

2 files changed

+21
-16
lines changed

2 files changed

+21
-16
lines changed
 

‎options.json

+7-1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,12 @@
1414
"insertAt": {
1515
"type": ["string", "object"]
1616
},
17+
"insertInto": {
18+
"anyOf": [
19+
{ "type": "string" },
20+
{ "instanceof": "Function" }
21+
]
22+
},
1723
"singleton": {
1824
"type": "boolean"
1925
},
@@ -24,5 +30,5 @@
2430
"type": "boolean"
2531
}
2632
},
27-
"additionalProperties": true
33+
"additionalProperties": false
2834
}

‎package.json

+14-15
Original file line numberDiff line numberDiff line change
@@ -15,27 +15,26 @@
1515
"options.json"
1616
],
1717
"dependencies": {
18-
"loader-utils": "^1.0.2",
19-
"schema-utils": "^0.3.0"
18+
"loader-utils": "^1.1.0",
19+
"schema-utils": "^0.4.3"
2020
},
2121
"devDependencies": {
22-
"css-loader": "^0.28.3",
23-
"file-loader": "^0.11.1",
24-
"jsdom": "^9.12.0",
25-
"memory-fs": "^0.4.1",
26-
"mocha": "^3.4.2",
27-
"sinon": "^2.4.1",
22+
"css-loader": "^0.28.0",
23+
"file-loader": "^1.0.0",
24+
"jsdom": "^9.0.0",
25+
"memory-fs": "^0.4.0",
26+
"mocha": "^3.0.0",
27+
"sinon": "^2.0.0",
2828
"standard-version": "^4.0.0",
29-
"webpack": "^2.6.1"
29+
"webpack": "^2.0.0"
3030
},
3131
"scripts": {
3232
"test": "mocha",
33-
"travis:test": "yarn run test",
34-
"release": "yarn run standard-version"
35-
},
36-
"repository": {
37-
"type": "git",
38-
"url": "git@github.com:webpack-contrib/style-loader.git"
33+
"travis:test": "npm run test",
34+
"release": "standard-version"
3935
},
36+
"repository": "https://github.com/webpack-contrib/style-loader.git",
37+
"bugs": "https://github.com/webpack-contrib/style-loader/issues",
38+
"homepage": "https://github.com/webpack-contrib/style-loader#readme",
4039
"license": "MIT"
4140
}

0 commit comments

Comments
 (0)
Please sign in to comment.