Skip to content

Commit 266a415

Browse files
committed
Merge pull request macropodhq#1 from macropodhq/use-normal-lodash
Use normal lodash rather than lodash-node
2 parents 446a059 + 757ecd8 commit 266a415

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
var postcss = require('postcss');
22
var nodepath = require('path');
3-
var _ = require('lodash-node');
3+
var assign = require('lodash/object/assign');
44

55
module.exports = postcss.plugin('postcss-local-constants', function (opts) {
66
var sets = opts && opts.defaults || {};
@@ -13,7 +13,7 @@ module.exports = postcss.plugin('postcss-local-constants', function (opts) {
1313
var constantSets = require(nodepath.resolve('./', JSON.parse(path)));
1414
if (constantSets[requiredSet]) {
1515
if (sets[requiredSet]) {
16-
sets[requiredSet] = _.assign({}, sets[requiredSet], constantSets[requiredSet]);
16+
sets[requiredSet] = assign({}, sets[requiredSet], constantSets[requiredSet]);
1717
}
1818

1919
else {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
},
2222
"homepage": "https://github.com/macropodhq/postcss-local-constants",
2323
"dependencies": {
24-
"lodash-node": "^3.10.0",
24+
"lodash": "^3.10.0",
2525
"postcss": "^4.1.13"
2626
},
2727
"devDependencies": {

0 commit comments

Comments
 (0)