Commit 2b0e9cff authored by Akari Labs's avatar Akari Labs

dont use objects as arguments in install functions

parent 75f4dc43
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
}, },
"repository": { "repository": {
"type": "git", "type": "git",
"url": "https://git.agiri.ninja/lp0/cascade-webpack.git" "url": "https://git.agiri.ninja/akari/cascade-webpack.git"
}, },
"author": "nocebo and lp0", "author": "nocebo and lp0",
"license": "MIT" "license": "MIT"
......
...@@ -115,15 +115,15 @@ module.exports = { ...@@ -115,15 +115,15 @@ module.exports = {
search, hookWebpack, search, hookWebpack,
replacements, preCtor, postCtor, replacements, preCtor, postCtor,
installReplacement({search, replace}) { installReplacement(search, replace) {
replacements.push({search, replace}); replacements.push({search, replace});
}, },
installPreCtor({condition, callback}) { installPreCtor(condition, callback) {
preCtor.push(callbackSearchToFunc(condition), callback); preCtor.push(callbackSearchToFunc(condition), callback);
}, },
installPostCtor({condition, callback}) { installPostCtor(condition, callback) {
postCtor.push(callbackSearchToFunc(condition), callback); postCtor.push(callbackSearchToFunc(condition), callback);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment