I am having trouble finding an explanation of how to use grunt-browsify. Looking at the examples folder, I look under my node browser and see the following:
module.exports = function (grunt) { grunt.initConfig({ browserify: { vendor: { src: [], dest: 'public/vendor.js', options: { require: ['jquery'], alias: [ './lib/moments.js:momentWrapper', //can alias file names 'events:evt' //can alias modules ] } }, client: { src: ['client/**/*.js'], dest: 'public/app.js', options: { external: ['jquery', 'momentWrapper'], } } }, concat: { 'public/main.js': ['public/vendor.js', 'public/app.js'] } }); grunt.loadTasks('../../tasks'); grunt.loadNpmTasks('grunt-contrib-concat'); grunt.registerTask('default', ['browserify', 'concat']); };
What are the "provider" and "customer" and where are they registered? In the README file, they mention "preBundleCB", "dist", and I have seen quite a few others, and most of them have their own data structures. Are these options listed and explained anywhere?
source share