ibm-js / requirejs-dplugins

AMD plugins for RequireJS
http://ibm-js.github.io/requirejs-dplugins/
Other
6 stars 9 forks source link

css plugin build fails to handle embedded (encoded) images #18

Closed seb-pereira closed 9 years ago

seb-pereira commented 9 years ago

Javascript:

define([
    'requirejs-dplugins/css!./lib/gridx/resources/claro/Gridx.css'
    ], function() {
});

CSS which cause the failure:

.gridxSummaryBar, .gridxTitleBar, .gridxBar {
    background: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAAPCAYAAAAlH6X5AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH3QkBDyst7ytGZAAAAB1pVFh0Q29tbWVudAAAAAAAQ3JlYXRlZCB3aXRoIEdJTVBkLmUHAAAAF0lEQVQI12NggAJGJgYGBgYmGIt0ggEABXAAJ5rKjIAAAAAASUVORK5CYII=') repeat-x scroll center bottom #e5edf4
}

Error:

[INFO] Running "amdserialize:app:amdbuild:amdoutput" (amdserialize) task
[INFO] Warning: Unable to read "src/main/webapp/js/css/data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAAPCAYAAAAlH6X5AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH3QkBDyst7ytGZAAAAB1pVFh0Q29tbWVudAAAAAAAQ3JlYXRlZCB3aXRoIEdJTVBkLmUHAAAAF0lEQVQI12NggAJGJgYGBgYmGIt0ggEABXAAJ5rKjIAAAAAASUVORK5CYII=" file (Error code: ENOENT). Use --force to continue.
[INFO] 
clmath commented 9 years ago

The problem is coming from grunt-amd-build so I opened a ticket there on your behalf. See https://github.com/ibm-js/grunt-amd-build/issues/17