Skip to content
This repository was archived by the owner on Jan 9, 2019. It is now read-only.

Difference in Generated CSS Files Between Mac and Windows Using IntelliJ IDEA #62

@monkeyconcepts

Description

@monkeyconcepts

Our team currently has developers that use both Mac and Windows as their main platform. We use IntelliJ IDEA so that we can have a consistent coding experience between the 2 platforms. We are currently having an issue where the generated CSS files are being created differently depending on what platform is being used.

This is the code that we are using:

<plugin>
  <groupId>org.lesscss</groupId>
  <artifactId>lesscss-maven-plugin</artifactId>
  <version>1.7.0.1.1</version>
    <configuration>
      <sourceDirectory>${project.basedir}/src/main/plugin/resources/script/apps</sourceDirectory>
      <outputDirectory>${project.basedir}/src/main/plugin/resources/script/apps</outputDirectory>
      <outputFileFormat>{fileName}.min.css</outputFileFormat>
     <compress>true</compress>
    </configuration>
    <executions>
      <execution>
        <goals>
          <goal>compile</goal>
        </goals>
      </execution>
    </executions>
</plugin>

When we run mvn clean package on a Mac the CSS files are generated in the same folder as the original LESS file was located.

EXAMPLE
Source - ${project.basedir}/src/main/plugin/resources/script/apps/missions/missions.less
Output - ${project.basedir}/src/main/plugin/resources/script/apps/missions/missions.css

When we run mvn clean package on a Windows machine the CSS files are generated in the outputDirectory with the folder structure appearing as the first part of the filename itself.

EXAMPLE
Source - ${project.basedir}/src/main/plugin/resources/script/apps/missions/missions.less
Output - ${project.basedir}/src/main/plugin/resources/script/apps/missionsmissions.css

Is there a reason that there would be a difference between the way the Mac and the Windows machines are generating the CSS files?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions