Created
March 19, 2014 18:22
-
-
Save apfelbox/9648006 to your computer and use it in GitHub Desktop.
Example code for `grunt-browserify` issue.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = function(grunt) { | |
grunt.loadNpmTasks("grunt-browserify"); | |
grunt.initConfig({ | |
browserify: { | |
app: { | |
options: { | |
transform: ['browserify-shim'] | |
}, | |
files: { | |
'out.js': ['in.js'] | |
} | |
} | |
} | |
}); | |
grunt.registerTask("default", ["browserify"]); | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var $ = require("jquery"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"browserify-shim": { | |
"jquery": "global:$" | |
}, | |
"devDependencies": { | |
"grunt": "~0.4.1", | |
"browserify-shim": "~3.2.0", | |
"grunt-browserify": "~1.3.1" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The issue still exists with 2.0.1.
package.json I tried it with: