java - Libsass-mave-plugin 多个输入输出目录

标签 java maven sass

我有一个带有 libsass-maven-plugin 的项目

<plugin>
    <groupId>com.github.warmuuh</groupId>
    <artifactId>libsass-maven-plugin</artifactId>
    <executions>
        <execution>
            <phase>generate-resources</phase>
            <goals>
                <goal>compile</goal>
            </goals>
        </execution>
    </executions>
    <configuration>
        <inputPath>${basedir}/inputpath</inputPath>
        <outputPath>${basedir}/outputpath</outputPath>
        <generateSourceMap>false</generateSourceMap>
    </configuration>
</plugin>

是否可以在不使用 Maven 配置文件的情况下指定更多输入和输出路径?

最佳答案

只需使用多次执行即可。请记住为所有这些添加唯一的 ID。

<plugin>
    <groupId>com.github.warmuuh</groupId>
    <artifactId>libsass-maven-plugin</artifactId>
    <executions>
        <execution>
            <id>firstId</id>
            <phase>generate-resources</phase>
            <goals>
                <goal>compile</goal>
            </goals>
            <configuration>
                <inputPath>firstInputPath</inputPath>
                <outputPath>firstOutputPath</outputPath>
                <generateSourceMap>false</generateSourceMap>
            </configuration>
        </execution>
        <execution>
            <id>secondId</id>
            <phase>generate-resources</phase>
            <goals>
                <goal>compile</goal>
            </goals>
            <configuration>
                <inputPath>secondInputPath</inputPath>
                <outputPath>secondOutputPath</outputPath>
                <generateSourceMap>false</generateSourceMap>
            </configuration>
        </execution>
    </executions>
</plugin>

关于java - Libsass-mave-plugin 多个输入输出目录,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32719439/

相关文章:

java - Hello World ,Java Applet,问题

maven - Jenkins Pipeline - 无法连接到 Docker 守护进程

sass - 带插值变量的数学?

reactjs - nextjs13 中所有 mui 组件上的 'use client' 是什么?

java - 为什么Java中没有无符号左移运算符

java - Java Thread trail 中 "new"周围的括号?

c++ - C++的类似Maven的依赖管理?

css - Ionic 3 如何将 ionic radio 颜色的 radio 图标更改为另一种颜色?

java - 标记 <uses-permission> 缺少必需的属性名称

maven - sbt (play!) 项目与 maven 父 pom 的集成