outputDirectoryFile - The directory for compiled CSS stylesheets. Default value is: ${project.build.directory}.
sourceDirectoryFile - The source directory containing the LESS sources. Default value is: ${project.basedir}/src/main/less.
compressboolean - When true the LESS compiler will compress the CSS stylesheets. Default value is: false.
encodingString The character encoding the LESS compiler will use for writing the CSS stylesheets. Default value is: ${project.build.sourceEncoding}.
excludesString[] - List of files to exclude. Specified as fileset patterns which are relative to the source directory.
forceboolean - When true forces the LESS compiler to always compile the LESS sources. By default LESS sources are only compiled when modified (including imports) or the CSS stylesheet does not exists. Default value is: false.
includesString[] - List of files to include. Specified as fileset patterns which are relative to the source directory. Default value is: { "**/*.less" }
lessJsString - The location of the LESS JavaScript file.
watchboolean - When true the plugin watches the sourceDirectory and recompiles the included files after they changed. Instead of configuring it in the pom you can use that option at the command line like this "mvn lesscss:compile -Dlesscss.watch=true". Then it doesn't interfere with other maven lifecycle phases and you can just kill the watch process e.g. with crtl-c. Default value is: false.
watchIntervalint - The interval in milliseconds the plugin waits between the check for file changes. Default value is: 1000 ms.
outputFileFormatString - The format of the output files. Default is: '{fileName}.css'. examples: '{fileName}.min.css', 'min-{fileName}.css', '{fileName}.anything'.
List sources
To list the LESS sources in your project the lesscss:list goal can be used. It lists the LESS sources and it's imports based on sourceDirectory and optionally includes and excludes configuration options.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
请发表评论