Skip to content

Commit

Permalink
fix(options): support passing a {Function} (options.insertInto)
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-ciniawsky committed Jan 26, 2018
1 parent ac8430c commit e0c4b19
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 16 deletions.
8 changes: 7 additions & 1 deletion options.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@
"insertAt": {
"type": ["string", "object"]
},
"insertInto": {
"anyOf": [
{ "type": "string" },
{ "instanceof": "Function" }
]
},
"singleton": {
"type": "boolean"
},
Expand All @@ -24,5 +30,5 @@
"type": "boolean"
}
},
"additionalProperties": true
"additionalProperties": false
}
29 changes: 14 additions & 15 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,27 +15,26 @@
"options.json"
],
"dependencies": {
"loader-utils": "^1.0.2",
"schema-utils": "^0.3.0"
"loader-utils": "^1.1.0",
"schema-utils": "^0.4.3"
},
"devDependencies": {
"css-loader": "^0.28.3",
"file-loader": "^0.11.1",
"jsdom": "^9.12.0",
"memory-fs": "^0.4.1",
"mocha": "^3.4.2",
"sinon": "^2.4.1",
"css-loader": "^0.28.0",
"file-loader": "^1.0.0",
"jsdom": "^9.0.0",
"memory-fs": "^0.4.0",
"mocha": "^3.0.0",
"sinon": "^2.0.0",
"standard-version": "^4.0.0",
"webpack": "^2.6.1"
"webpack": "^2.0.0"
},
"scripts": {
"test": "mocha",
"travis:test": "yarn run test",
"release": "yarn run standard-version"
},
"repository": {
"type": "git",
"url": "[email protected]:webpack-contrib/style-loader.git"
"travis:test": "npm run test",
"release": "standard-version"
},
"repository": "https://github.com/webpack-contrib/style-loader.git",
"bugs": "https://github.com/webpack-contrib/style-loader/issues",
"homepage": "https://github.com/webpack-contrib/style-loader#readme",
"license": "MIT"
}

0 comments on commit e0c4b19

Please sign in to comment.