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:
eight 2018-11-11 14:06:25 +08:00 committed by GitHub
parent 5646b8a0d9
commit deeba1b900
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
8 changed files with 186 additions and 212 deletions

View File

@ -108,7 +108,7 @@ function getUsercssCompiler(preprocessor) {
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('');
return self.less.render(varDefs + source)
.then(({css}) => css);

View File

@ -12,7 +12,7 @@
"eslint": "^5.8.0",
"fs-extra": "^7.0.0",
"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",
"rimraf": "^2.6.2",
"semver-bundle": "^0.1.1",

View File

@ -14,7 +14,7 @@ const files = {
'jsonlint': [
'lib/jsonlint.js → jsonlint.js'
],
'less': [
'less-bundle': [
'dist/less.min.js → less.min.js'
],
'lz-string-unsafe': [

View File

@ -1,7 +1,3 @@
https://github.com/less/less.js
https://github.com/less/less.js/blob/master/LICENSE
Apache License
Version 2.0, January 2004

5
vendor/less-bundle/README.md vendored Normal file
View 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

File diff suppressed because one or more lines are too long

10
vendor/less/README.md vendored
View File

@ -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

File diff suppressed because one or more lines are too long