mirror of
https://github.com/less/less.js.git
synced 2026-05-01 03:00:22 -04:00
Change --inline-js to simplified --js option
This commit is contained in:
@@ -430,11 +430,11 @@ function processPluginQueue() {
|
||||
case 'no-ie-compat':
|
||||
options.ieCompat = false;
|
||||
break;
|
||||
case 'inline-js':
|
||||
case 'js':
|
||||
options.javascriptEnabled = true;
|
||||
break;
|
||||
case 'no-js':
|
||||
console.error('The "--no-js" argument is deprecated. Use "--inline-js" to enable inline JavaScript.');
|
||||
console.error('The "--no-js" argument is deprecated, as inline JavaScript is disabled by default. Use "--js" to enable inline JavaScript (not recommended).');
|
||||
break;
|
||||
case 'include-path':
|
||||
if (checkArgFunc(arg, match[2])) {
|
||||
|
||||
@@ -31,7 +31,7 @@ var lessc_helper = {
|
||||
console.log(" -M, --depends Outputs a makefile import dependency list to stdout.");
|
||||
console.log(" --no-color Disables colorized output.");
|
||||
console.log(" --no-ie-compat Disables IE compatibility checks.");
|
||||
console.log(" --inline-js Enables inline JavaScript in less files");
|
||||
console.log(" --js Enables inline JavaScript in less files");
|
||||
console.log(" -l, --lint Syntax check only (lint).");
|
||||
console.log(" -s, --silent Suppresses output of error messages.");
|
||||
console.log(" --strict-imports Forces evaluation of imports.");
|
||||
|
||||
Reference in New Issue
Block a user