some code at first:
My r.js boot file, which i run by 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'
//},
})
then plugin throws exception in console:
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'
Could someone answer to me why r.js evaluates 'text' plugin despite on 'stubModules' param in build profile properties?
I've read this articles before:
- How can I prevent the Require.js optimizer from including the text plugin in optimized files?
- Inlining require.js text! using Grunt
Thanks in advance.