requirejs / r.js

Runs RequireJS in Node and Rhino, and used to run the RequireJS optimizer
Other
2.57k stars 672 forks source link

r.js build in browser (optimize css files) #532

Open pipanchik opened 11 years ago

pipanchik commented 11 years ago

Css optimization does not work if i build in the browser (js optimization works). If I set: requirejs.optimize({ baseUrl: '.', optimizeCss:'standard', cssIn:'/r/tests/browser/main.css', out: function (text) { document.getElementById('output').value = text; } }, function (buildText) { document.getElementById('buildMessages').value = buildText; });

In the console: " Error {} "

jrburke commented 11 years ago

Can you construct a test case that I can try? with the file layout for the main.css and if it has @import calls in it, the sub-css files too?