0
SAPUi5アプリケーションでComponent-preload.jsファイルを生成しようとしています。私はgrunt-openui5プラグインを使用しています。コンポーネントpreload.jsが作成されていません
オプションの圧縮パラメータをfalseに設定すると、Component-preload.jsを生成できます。パラメータをtrueに設定すると、noch Component-prelaod.jsファイルが生成されます。 理由は何でしょうか?私はComponent-preload.jsを縮小したい。 私のGruntfile.jsのスニペットを使用しています。
openui5_preload: {
webapp: {
options: {
resources: {
cwd: '<%= webapp.srcRoot %>', // this should point to the entry folder
prefix: '<%= webapp.prefix %>', // this should be your component namespace
src: [
"!Component-preload.js",
"**/*.js",
"**/*.xml",
"*/*.js",
"*/*.xml",
"*.js",
"*.xml",
"**/*.properties",
"model/*.json",
"*.json",
"*.js",
"**/*.css",
"!Gruntfile.js"
],
},
// "dest" needs to be defined within "options" not "options.resources"
dest: "<%= webapp.targetRoot %>", // to put the file in the same folder
compress: true
},
components: true
}
},