Skip to content
This repository has been 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

Open
monkeyconcepts opened this issue Oct 3, 2014 · 0 comments

Comments

@monkeyconcepts
Copy link

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?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant