main.js :
requirejs.config({
css: "https://cdnjs.cloudflare.com/ajax/libs/require-css/0.1.10/css",
fontawesome: "https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome"
});
requirejs(["css!fontawesome"]);
app.build.js :
({
name: "main",
out: "built.js",
paths: {
css: "empty:",
fontawesome: "empty:"
}
})
r.js -o app.build.js
抛出:
Error: TypeError: Cannot read property 'normalize' of undefined
In module tree:
main
似乎“排除”这样的选项仅适用于模块吗?