-
Notifications
You must be signed in to change notification settings - Fork 54
Difference in Generated CSS Files Between Mac and Windows Using IntelliJ IDEA #62
Description
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?