Skip to content

meinaart/requirejs-fingerprint

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RequireJS fingerprint plugin

This is a simple fingerprint plugin for RequireJS

For more plugins check RequireJS Wiki.

Install

You can use bower to install it easily:

bower install --save requirejs-fingerprint

Documentation

check the examples folder. All the info you probably need will be inside comments or on the example code itself.

Basic usage

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'
    }
  }
});

Writing your own plugins

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.

Author

Meinaart van Straalen

License

This plugin is released under the MIT license.

About

Plugin for RequireJS for fingerprinting loaded modules.

Resources

License

Stars

Watchers

Forks

Packages

No packages published