Skip to content

Commit 5aea978

Browse files
author
Igor Polevoy
committed
#223 Lessc plugin need to be able to process more than one file - docs
1 parent 12acfa6 commit 5aea978

File tree

1 file changed

+32
-2
lines changed

1 file changed

+32
-2
lines changed

activeweb-lessc/README.md

Lines changed: 32 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# ActiveWebLessc Maven Plugin compiles Lessc files into CSS
22

3-
## Configuration
3+
## Configuration with a single LESS file
44

55
```xml
66
<plugin>
@@ -21,4 +21,34 @@
2121

2222
```
2323

24-
This should be self-explanatory
24+
## Configuration with a multiple LESS files
25+
26+
27+
```xml
28+
<plugin>
29+
<groupId>org.javalite</groupId>
30+
<artifactId>activeweb-lessc-maven-plugin</artifactId>
31+
<version>${proj_version}</version>
32+
<configuration>
33+
<lessConfigs>
34+
<lessConfig implementation="org.javalite.lessc.maven.LessConfig">
35+
<lesscMain>src/main/webapp/less1/bootstrap.less</lesscMain>
36+
<targetDirectory>target/web1</targetDirectory>
37+
<targetFileName>bootstrap.css</targetFileName>
38+
</lessConfig>
39+
<lessConfig implementation="org.javalite.lessc.maven.LessConfig">
40+
<lesscMain>src/main/webapp/less2/bootstrap.less</lesscMain>
41+
<targetDirectory>target/web2</targetDirectory>
42+
<targetFileName>bootstrap.css</targetFileName>
43+
</lessConfig>
44+
</lessConfigs>
45+
</configuration>
46+
<executions>
47+
<execution>
48+
<goals>
49+
<goal>compile</goal>
50+
</goals>
51+
</execution>
52+
</executions>
53+
</plugin>
54+
```

0 commit comments

Comments
 (0)