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.
when i use like this:
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
It works;
How can I use both
require-cssandcommonJsModule? Thank you.