以下のビルド構成では、以下に指定されたデプロイ コマンドを実行すると、ソース ディレクトリ内のすべてのファイル + 縮小されたアプリケーション ファイルが表示されるのはなぜですか。バックボーン アプリケーションを開始する単一の js ファイルのみが必要です
ビルド構成
({
appDir: "../",
baseUrl: 'Comment',
dir: './deploy',
optimize: 'uglify',
paths: {
text: '../../amd/plugins/text',
CommentView: 'views/feedback',
Feedback: 'models/feedback',
templates: 'templates'
},
modules: [
{
name: "app"
}
]
})
App.js
require.config({
urlArgs: "bust=" + (new Date()).getTime(),
baseUrl: 'scripts/apps/feedback',
paths: {
text: '../../amd/plugins/text',
CommentView: 'views/feedback',
Feedback: 'models/feedback',
templates: 'templates'
}
});
require(["Feedback", "CommentView"], function (feedbackModel, commentView) {
});
最適化コマンド
node amd/plugins/r.js -o apps/feedback/build.config.js