Build Dojo 1.8构建系统-如何设置前缀/路径?

Build Dojo 1.8构建系统-如何设置前缀/路径?,build,dojo,path,prefixes,Build,Dojo,Path,Prefixes,我正在努力使用Dojo1.8构建系统。我正在尝试使用dojo/text!从url myapp/tmpl/SomeView.html到源html的templates/SomeView.html: //FILE: SomeView.js define(["dojo/_base/declare", "dojo/text!templates/SomeView.html", ... function(declare, SomeViewTemplateHTML, ... return {... 我

我正在努力使用Dojo1.8构建系统。我正在尝试使用dojo/text!从url myapp/tmpl/SomeView.html到源html的templates/SomeView.html:

//FILE: SomeView.js
define(["dojo/_base/declare", "dojo/text!templates/SomeView.html", ...
  function(declare, SomeViewTemplateHTML, ...
  return {...
我似乎无法让它检测到映射到模块路径“myapp/tmpl/”的“templates”前缀。我尝试了路径、loaderConfig.path和前缀。但是当我运行build.sh--profile app.profile.js时,这些似乎都没有起到任何作用:

//FILE: app.profile.js
var profile = (function(){
return {
    basePath: ".",
    releaseDir: "builds",
    releaseName: "foooo",
    optimize: "closure",
    cssOptimize: "comments",
    action: "release",

    packages:[{
        name: "pkg1",
        location: "myapp/pkg1"
    }],

    loaderConfig: {
        paths: {
        "templates": "myapp/tmpl"
        },
        prefixes: {
        "templates": "myapp/tmpl"
        }               
    },
    prefixes: {
        "templates": "myapp/tmpl"
    },


    layers: {
        "dojo/dojo-release": {
            include: [ "dojo/dojo", "dojo/domReady"],
            customBase: true,
            boot: true
        },
        "foobar/foobar-release": {
            include: [
                "myapp/app"
            ]
        }
    }
};
})();
任何帮助都将不胜感激!我已经多次阅读dojo/app和dojo构建页面,但所有信息都非常有限

问候,,
Ken

构建过程中没有模板映射,因此如果以下是您的结构

myapp/SomeView.js
myapp/tmpl/SomeView.html
然后
dojo/text!templates/SomeView.html
应该是
dojo/text/tmpl/SomeView.html