Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8624517
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T07:32:54+00:00 2026-06-12T07:32:54+00:00

I am using Grails 2.1.0 and lesscss-resources 1.3.0.3 I have created a plugin containing

  • 0

I am using Grails 2.1.0 and lesscss-resources 1.3.0.3

I have created a plugin containing a less and several css files, having lesscss-resources plugin installed + explicit plugin dependency to the same.
Another Grails project has my custom plugin installed and the very same lesscss-resources plugin.

When running the plugin alone, all css files and the less file are merged correctly into one css file.

When running the other Grails project, only the css files are merged – but the less file is linked untouched as less file like this:
<link href="/myproject/css/mystyle.less" type="text/css" rel="stylesheet/less" media="screen, projection" />.
However, less resources within the project are merged fine.

Shouldn’t the less resources of the plugin be merged, too? If not, is there a workaround? I’d be happy for any ideas how to solve this – I do not have a clue where to look in order to find the root cause of the problem…. Thanks a lot.

By the way, I am not talking about the issue described here: https://github.com/paulfairless/grails-lesscss-resources/issues/25. I have already stumbled over this one and added the dummy.css, which works fine for me.

Related plugins installed in plugin and project:

  • runtime “:cache-headers:1.1.5”
  • runtime “:cached-resources:1.0”
  • runtime “:lesscss-resources:1.3.0.3”
  • runtime “:resources:1.1.6”
  • runtime “:zipped-resources:1.0”

EDIT:
FYI: In the meantime I did some more testing and reproduced the issue with the least amount of code. As this seems to be very specific to the lesscss-resources plugin, I have raised an issue at https://github.com/paulfairless/grails-lesscss-resources/issues/36

I’ll update this question with any information that might pop up over there. If anyone has an idea, I’d still be happy to hear it, I’ve uploaded the least-amount-of-code project and plugin here:
http://www.2shared.com/file/4OM-RVC6/lesstest.html


EDIT 2:
I have not received a response yet, but found a workaround that works for my use case, at least.
Unfortunately it involves changing the code of the lesscss-plugin. See my comment at https://github.com/paulfairless/grails-lesscss-resources/issues/36#issuecomment-8721813

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T07:32:56+00:00Added an answer on June 12, 2026 at 7:32 am

    As there is still no feedback on the issue mentioned above, I add my workaround as answer for now.

    I got it working by copying resourceMappers.LesscssResourceMapper to my plugin projecct (i.e. overriding the default behavior of the lesscss-resources plugin) and changing line 24 to say

    File input = originalFile
    

    instead of

    File input = getOriginalFileSystemFile(resource.sourceUrl);
    

    This way, everything works fine for me. As far as I can see, no side effects should emerge from this change.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using: Grails xfire plugin and I created the service mobile containing the following
I'm using Grails 1.3.7 and the db-migration plug-in. I have generated a chagelog.groovy-file containing
I have a Grails 2.0.0 project that was created using grails create-app . In
I'm using Grails and I have a local-plugin (that I wrote) that I'm using
I am using Grails 2.1.0 and trying to install plugins twitter-bootstrap 2.0.4 and less-resources
I am using Grails multi-tenant plugin with single-tenant mode. I have used spring security
I am using Grails Spring Security Plugin 1.2.7.3 and would like to have the
I have just started using grails and installed the spring-security and spring-security-ui plugins. I
Using Grails database-migration I have a table in production defined like so: +--------------+------------+------+-----+---------+----------------+ |
I'm considering using Grails for my current project. I have a couple of requirements

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.