Squarespace / less-compiler

Less compiler in Java
Apache License 2.0
19 stars 9 forks source link

LESS Not Compiling in Production #8

Closed alexisdavalos closed 4 years ago

alexisdavalos commented 4 years ago

I'm currently in local development mode and I'm working out of index.less file. I'm importing styles from files I've included in the styles folder. image

I have also tried importing in the following ways as well: @import "fullwidth" @import "fullwidth.less"

The CSS compiles just fine in local development mode, however... it throws an error on line 1 of index.less because it cannot find the file in production?

image

I have committed my changes and pushed to master and also checked for the existence of the file via FTP.

image image

Couldn't find any answers online, can anyone from the Squarespace dev team point me in the right direction? Thank you.

phensley commented 4 years ago

As you might have guessed I can't provide full platform support here, but try removing the imports and listing the stylesheets in order in the template.conf stylesheets array, e.g.:

{
  "stylesheets" : [ "fullwidth.less", "threeBlocks.less", "banner.less", ... etc ]
}

If you suspect any errors might be due to a bug or issue in using either the platform or local development server, you can contact Squarespace support for assistance: https://support.squarespace.com/hc/en-us/articles/206545717#toc-can-i-contact-customer-support-for-help-

alexisdavalos commented 4 years ago

That worked perfectly. Thank you so much!!