bertramdev / asset-pipeline

The core implementation of the asset pipeline for the jvm
193 stars 91 forks source link

Grails URL mapping to asset returns 404 #255

Open ilPittiz opened 4 years ago

ilPittiz commented 4 years ago

I defined a custom URL mapping resolving to an URI served by Asset pipeline:

class UrlMappings {
  static mappings = {
    ...
    '/favicon.ico' ( uri: '/assets/favicons/favicon-32x32.ico' )
  }
}

With this configuration

Environment:

It worked fine with combination of Grails 3.2.6 and Asset pipeline 3.0.1.

pangeaos commented 4 years ago

Yes, I have same problem. The line "/service-worker.js" (uri: '/assets/service-worker.js') is not working on Grails 4.