Open Source compliance: un-minify less.js

Signed-off-by: Dmitry Smirnov <onlyjob@member.fsf.org>
This commit is contained in:
Dmitry Smirnov 2018-07-24 17:38:49 +10:00
parent c7870ee2d1
commit a907d0c905
6 changed files with 12588 additions and 22 deletions

View File

@ -69,7 +69,7 @@ var usercss = (() => {
useFileCache: false,
};
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(({css}) => css);
}

View File

@ -15,7 +15,7 @@ const files = {
'lib/jsonlint.js → jsonlint.js'
],
'less': [
'dist/less.min.js → less.min.js'
'dist/less.js → less.js'
],
'lz-string-unsafe': [
'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.
* `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`.
* `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`.

View File

@ -2,7 +2,7 @@
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:

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