r.js和文本插件

时间:2014-07-21 13:52:45

标签: require r.js

我正在尝试编译一个使用require.js的项目。我想用r.js优化,但我面临构建问题:

Error: RangeError: Maximum call stack size exceeded
In module tree:
    main
      vorbok
        dataloader

我在dataload模块中注意到,如果我采用这一行,问题就消失了:

"text!/templates/registration/mous

环节/ toppanel.moustache"

我的配置文件是:

({
    appDir: "../../lambdev/src/interface/static/js/registration",
    baseUrl: ".",
    dir: "../app-build",
    paths: {
        jquery: '../jquery/jquery-2.0.0.min',
        Grid:"grid",
        Backbone:"../bower_components/backbone/backbone-min",
        Gridutils:"gridutils",
        Underscore:"../bower_components/underscore/underscore-min",
        text:"../bower_components/requirejs-text/text",
        mustache:"../mustache",
        jcolor: "jquery/jquery.color",
        bootstrap:"../bootstrap3/bootstrap.min",
        gridtable:"gridtable",
        gridvalidation:"gridvalidation",
        table_engine:"table_engine",
        paginator:'../bootstrap3/bootstrap-paginator.min',
        fangskraningpanel:"mmode/massaskraning",
        routerfunctions:"routerfunctions",
        moment:"../bower_components/moment/min/moment.min",
        rowvalidation:"rowvalidation",
        utils:"../various/utils",
        batch:"batch",
        messages:"messages",  
        autocomplete:"../bower_components/jquery-ui/ui/minified/jquery-ui.min",
        jstorage:"../bower_components/jstorage/jstorage.min",   
        notify:"notify",
        whenitype:"../bower_components/jquery.whenitype/dist/jquery.whenitype.min",
        dataloader:"dataloader",
        inputhelper:"../various/input.helper",
        listeners:"listeners",   
        nod:"../bower_components/jquery-nod/nod",
        tooltip:"bootstrap3/tooltip",
        qtip:"../jquery/jquery.qtip",
        modal:"../bootstrap3/modal",  
        ramsearch:"../various/ramsearch",
        ewesearch:"../various/ewesearch",
        focusmanager:"focusmanager",
        vorbok:"mmode/vorbok",
        afdrifaskraning:"mmode/afdrifaskraning",
        saedingaskraning:"mmode/saedingaskraning",
        saedingar:"mmode/saedingar",
        error_check_panel:"mmode/error_check_panel",
        keytooltips:"keytooltips",


    },
    optimizeCss: "standard.keepLines",
    modules: [
        {
            name: "main"
        }
    ],
    stubModules : ['text'],
    inlineText: true,
    optimizeAllPluginResources: false,
    fileExclusionRegExp: /\.hg/
})

我需要知道如何修复由于文本插件引起的错误。

0 个答案:

没有答案