Skip to content

Commit 6183356

Browse files
authored
Merge pull request #77 from stealjs/config
Add a super-dependency to less
2 parents 2f77fa2 + 1abb664 commit 6183356

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

less-config.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
// Without these options Less will inject a `body { display: none !important; }`
2+
"format cjs";
3+
4+
var global = System.global;
5+
var less = global.less || (global.less = {});
6+
less.async = true;

package.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,12 @@
6666
},
6767
"ext": {
6868
"less": "steal-less"
69+
},
70+
"meta": {
71+
"less/dist/less": {
72+
"format": "global",
73+
"deps": ["steal-less/less-config"]
74+
}
6975
}
7076
},
7177
"bit-docs": {

0 commit comments

Comments
 (0)