Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,15 +42,15 @@ Fast maven plugin for less compiler (use jless). It can also convert multiple fi

# Parameters

* from: Source less file.
* from: Source less file, relative to project's basedir.
* to: Destination CSS file.
* append: Append the CSS to the other file (if 'to' does not set).
* compress: Compress the output or not.

# History

**v1.5**
* Yodate to jlessc version 1.5
* Update to jlessc version 1.5

**v1.2**
* Update to jlessc version 1.2
6 changes: 3 additions & 3 deletions src/main/java/com/github/wpic/LessMojo.java
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public void execute() throws MojoExecutionException, MojoFailureException {
else if (compile.to == null && compile.append == null) {
for (String f : files) {
try {
final File from = new File(f);
final File from = new File(baseDir, f);
final String css = Less.compile(from, Boolean.TRUE.equals(compile.compress));
final String name = from.getName();

Expand All @@ -74,7 +74,7 @@ else if (compile.to != null) {

for (String f : files) {
try {
final File from = new File(f);
final File from = new File(baseDir, f);

css.append(Less.compile(from, Boolean.TRUE.equals(compile.compress)));
css.append('\n');
Expand All @@ -98,7 +98,7 @@ else if (compile.append != null) {

for (String f : files) {
try {
final File from = new File(f);
final File from = new File(baseDir, f);

css.append(Less.compile(from, Boolean.TRUE.equals(compile.compress)));
css.append('\n');
Expand Down