2
在運行grails test-app -integration
我得到這些錯誤:Grails的測試包錯誤
2013-08-05 10:57:34,701 [WARN ]
(main)grails.app.resourceMappers.org.grails.plugin.resource.BundleResourceMapper -
Cannot create a bundle from resource [/less/dummy.css],
the content type [application/octet-stream] is not supported. Set the resource to exclude bundle mapper.
(這就是印所有的CSS/JS /更少...資源)
什麼意思。我該如何解決這個問題?
這是我的MIME類型設置:
grails.mime.types = [
all: '*/*',
atom: 'application/atom+xml',
css: 'text/css',
less: 'text/less',
csv: 'text/csv',
form: 'application/x-www-form-urlencoded',
html: ['text/html','application/xhtml+xml'],
js: 'text/javascript',
coffee: 'text/coffeescript',
json: ['application/json', 'text/json'],
multipartForm: 'multipart/form-data',
rss: 'application/rss+xml',
text: 'text/plain',
xml: ['text/xml', 'application/xml']
]
// What URL patterns should be processed by the resources plugin
grails.resources.adhoc.patterns = ['/images/*', '/css/*', '/js/*', '/plugins/*']
你有沒有在你的config.groovy(grails.mime.types)中定義的任何非標準MIME類型? –
@dunnless我已更新我的帖子以顯示配置。我添加了更少和咖啡標記,但在警告中沒有任何區別。 – matcauthon