Currently, I am utilizing YepNope.js to handle the loading of my css and javascript files. My query is regarding whether there is a method to assign variable names to these scripts during the initial process. For example:
yepnope({
test : Modernizr.csstransforms,
yep : ['MyCSS', 'jQuery'],
nope : ['MyCSS2']
});
// In this scenario, 'MyCSS' would represent '/css/mycss.css', 'jQuery' stands for '/scripts/jquery.min.js',
// and 'MyCSS2' corresponds to '/css/mycss2.css'
Our development team consists of multiple developers who will all be using the same set of scripts. We aim to streamline the process as much as possible. Having to manually identify the script paths might prove to be a tedious task compared to simple name assignments.
The goal is to create a predefined list of variable names with their associated script values that YepNope.js can interpret without requiring the developer to include the variable assignments within their project's code:
{ 'MyCSS': '/css/mycss.css', 'jQuery': '/scripts/jquery.min.js' }
This approach would allow developers to seamlessly incorporate the script files into their projects without the need to search for each file path individually.