amd-optimize
amd-optimize copied to clipboard
Issue with requirejs/text
Hi, I'm using requirejs/text in my module. Trying to build it but getting error Error: No file for module 'templates/item.hbs' found. I've read that problem was solved some time ago. Maybe I'm doing something wrong.
Here some example of my code
define(['app',
'marionette',
'handlebars',
'views/itemView',
'text!templates/list.hbs'], function(app, Marionette, Handlebars, ItemView, template) {
"use strict";
return Marionette.CompositeView.extend({
template: Handlebars.compile(template),
childView: ItemView,
className: 'row'
});
});
Can you help me guys?