This commit is contained in:
Dmitry Smirnov 2018-07-24 07:48:45 +00:00 committed by GitHub
commit bd14801452
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 12588 additions and 22 deletions

View File

@ -69,7 +69,7 @@ var usercss = (() => {
useFileCache: false, useFileCache: false,
}; };
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 loadScript('/vendor/less/less.min.js') return loadScript('/vendor/less/less.js')
.then(() => window.less.render(varDefs + source)) .then(() => window.less.render(varDefs + source))
.then(({css}) => css); .then(({css}) => css);
} }

View File

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

2
vendor/README.md vendored
View File

@ -20,7 +20,7 @@ The following changes are made:
* `CodeMirror`: Only existing files are updated directly from the `node_modules` folder; see the [CodeMirror readme](codemirror/README.md) for specifics. * `CodeMirror`: Only existing files are updated directly from the `node_modules` folder; see the [CodeMirror readme](codemirror/README.md) for specifics.
* `jsonlint`: The uncompressed `lib/jsonlint.js` is copied directly to `vendor/jsonlint`. * `jsonlint`: The uncompressed `lib/jsonlint.js` is copied directly to `vendor/jsonlint`.
* `less`: The compressed `dist/less.min.js` file is copied directly into `vendor/less`. * `less`: The `dist/less.js` file is copied directly into `vendor/less`.
* `lz-string-unsafe`: The compressed `lz-string-unsafe.min.js` file is copied directly into `vendor/lz-string-unsafe`. * `lz-string-unsafe`: The compressed `lz-string-unsafe.min.js` file is copied directly into `vendor/lz-string-unsafe`.
* `semver-bundle`: The `dist/semver.js` file is copied directly into `vendor/semver`. * `semver-bundle`: The `dist/semver.js` file is copied directly into `vendor/semver`.
* `stylus-lang-bundle`: The `stylus.min.js` file is copied directly into `vendor/stylus-lang-bundle`. * `stylus-lang-bundle`: The `stylus.min.js` file is copied directly into `vendor/stylus-lang-bundle`.

View File

@ -2,7 +2,7 @@
less.js installed via npm - source repo: less.js installed via npm - source repo:
https://github.com/less/less.js/blob/v3.8.0/dist/less.min.js https://github.com/less/less.js/raw/v3.8.0/dist/less.js
If the link doesn't work, it is likely that the npm version and the release versions don't match: If the link doesn't work, it is likely that the npm version and the release versions don't match:

12584
vendor/less/less.js vendored Normal file

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long