scalableminds / amd-optimize

An AMD (RequireJS) optimizer that's stream-friendly. Made for gulp.
MIT License
162 stars 29 forks source link

Issue with requirejs/text #65

Open denar90 opened 9 years ago

denar90 commented 9 years ago

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?