I created bundle config in my main configuration file
bundles: {
'staff-bundle-view-profile' : [
'viewProfile/viewProfile',
'viewProfile/viewProfileEducation',
'viewProfile/viewProfilePublication',
'viewProfile/viewProfilePlot'
]
}
When I try load one of modules from above list, for example viewProfile/viewProfile - as a result, require.js try load staff-bundle-view-profile.js
Of course I get 404 error. What should i do to create this file?
The
bundlesconfiguration option is meant to be used to load bundles created with ther.jsoptimizer, or any optimizer that operates liker.jsdoes. So you need to use an optimizer liker.jsto createstaff-bundle-view-profile. There are multiple ways to perform the build. Which way would be best depends on specifics of your project that are not in your question. You should read the documentation and the questions aboutr.jsalready asked on SO to figure out what would work best for you.