einige Code auf den ersten:r.js auswertet 'text' Plugin trotz auf 'stubModules' param
Meine r.js Boot-Datei, die ich laufe durch r.js.cmd -o static/js/boot.js
({
baseUrl: './',
preserveLicenseComments: false,
name: 'boot',
stubModules: ['text'],
mainConfigFile: './requirejs/config.js',
out: 'build.min.js',
//paths: {
// 'text': 'plugins/requirejs.text'
//},
})
dann wirft Plugin Ausnahme in Konsole:
Error: Error: Loader plugin did not call the load callback in the build:
text:
text!langJSON: Error: ENOENT, no such file or directory 'C:\web\lang\main'
text!/web/downloads/links.json: Error: ENOENT, no such file or directory 'C:\web\downloads\links.json'
Könnte mir jemand beantworten, warum auswertet 'text' Plugin trotz auf 'stubModules' param in Build-Profileigenschaften r.js?
ich diesen Artikel schon einmal gelesen:
- How can I prevent the Require.js optimizer from including the text plugin in optimized files?
- Inlining require.js text! using Grunt
Vielen Dank im Voraus.