This is a simple fingerprint plugin for RequireJS
For more plugins check RequireJS Wiki.
You can use bower to install it easily:
bower install --save requirejs-fingerprint
check the examples
folder. All the info you probably need will be inside
comments or on the example code itself.
Put the plugins inside the baseUrl
folder (usually same folder as the main.js
file) or create an alias to the plugin location:
require.config({
paths : {
//create alias to plugins (not needed if plugins are on the baseUrl)
fingerprint: 'lib/require/fingerprint',
},
config: {
'fingerprint': 'build.1.2.3'
}
}
});
Check RequireJS documentation for a basic reference and use other plugins as reference. RequireJS official plugins are a good source for learning.
Also be sure to check RequireJS Wiki.
This plugin is released under the MIT license.