-
-
Notifications
You must be signed in to change notification settings - Fork 362
Open
Description
when i use like this:
define(['require', 'jquery', 'css!home'], function(require, $) {
var common = require('common/common');
console.log(common);
});
It throws error "Uncaught Error: Module name "common/common" has not been loaded yet for context: _".
But when I use code: http://requirejs.org/docs/node.html#2
define(function(require) {
var common = require('common/common');
console.log(common);
});
It works;
How can I use both require-css and commonJs Module? Thank you.
Metadata
Metadata
Assignees
Labels
No labels