Change: drop less, switch to less-bundle (#542)
* Change: drop less, switch to less-bundle * fixup! Change: drop less, switch to less-bundle
This commit is contained in:
parent
5646b8a0d9
commit
deeba1b900
|
@ -108,7 +108,7 @@ function getUsercssCompiler(preprocessor) {
|
||||||
useFileCache: false,
|
useFileCache: false,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
loadScript('/vendor/less/less.min.js');
|
loadScript('/vendor/less-bundle/less.min.js');
|
||||||
const varDefs = Object.keys(vars).map(key => `@${key}:${vars[key].value};\n`).join('');
|
const varDefs = Object.keys(vars).map(key => `@${key}:${vars[key].value};\n`).join('');
|
||||||
return self.less.render(varDefs + source)
|
return self.less.render(varDefs + source)
|
||||||
.then(({css}) => css);
|
.then(({css}) => css);
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
"eslint": "^5.8.0",
|
"eslint": "^5.8.0",
|
||||||
"fs-extra": "^7.0.0",
|
"fs-extra": "^7.0.0",
|
||||||
"jsonlint": "^1.6.3",
|
"jsonlint": "^1.6.3",
|
||||||
"less": "^3.8.1",
|
"less-bundle": "github:openstyles/less-bundle#v0.1.0",
|
||||||
"lz-string-unsafe": "^1.4.4-fork-1",
|
"lz-string-unsafe": "^1.4.4-fork-1",
|
||||||
"rimraf": "^2.6.2",
|
"rimraf": "^2.6.2",
|
||||||
"semver-bundle": "^0.1.1",
|
"semver-bundle": "^0.1.1",
|
||||||
|
|
|
@ -14,7 +14,7 @@ const files = {
|
||||||
'jsonlint': [
|
'jsonlint': [
|
||||||
'lib/jsonlint.js → jsonlint.js'
|
'lib/jsonlint.js → jsonlint.js'
|
||||||
],
|
],
|
||||||
'less': [
|
'less-bundle': [
|
||||||
'dist/less.min.js → less.min.js'
|
'dist/less.min.js → less.min.js'
|
||||||
],
|
],
|
||||||
'lz-string-unsafe': [
|
'lz-string-unsafe': [
|
||||||
|
|
|
@ -1,7 +1,3 @@
|
||||||
https://github.com/less/less.js
|
|
||||||
|
|
||||||
https://github.com/less/less.js/blob/master/LICENSE
|
|
||||||
|
|
||||||
|
|
||||||
Apache License
|
Apache License
|
||||||
Version 2.0, January 2004
|
Version 2.0, January 2004
|
5
vendor/less-bundle/README.md
vendored
Normal file
5
vendor/less-bundle/README.md
vendored
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
## less-bundle v0.1.0
|
||||||
|
|
||||||
|
less-bundle installed via npm - source repo:
|
||||||
|
|
||||||
|
https://github.com/openstyles/less-bundle/raw/v0.1.0/dist/less.min.js
|
1
vendor/less-bundle/less.min.js
vendored
Normal file
1
vendor/less-bundle/less.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
10
vendor/less/README.md
vendored
10
vendor/less/README.md
vendored
|
@ -1,10 +0,0 @@
|
||||||
## LESS v3.8.1
|
|
||||||
|
|
||||||
less.js installed via npm - source repo:
|
|
||||||
|
|
||||||
https://github.com/less/less.js/blob/v3.8.1/dist/less.min.js
|
|
||||||
|
|
||||||
If the link doesn't work, it is likely that the npm version and the release versions don't match:
|
|
||||||
|
|
||||||
- https://www.npmjs.com/package/less
|
|
||||||
- https://github.com/less/less.js/releases
|
|
18
vendor/less/less.min.js
vendored
18
vendor/less/less.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user