Skip to content

Commit

Permalink
Use derequire to make dist file work with browserify
Browse files Browse the repository at this point in the history
  • Loading branch information
Per Liedman committed Oct 11, 2016
1 parent 7211c1b commit dc722dd
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
3 changes: 2 additions & 1 deletion Gruntfile.js
Expand Up @@ -7,7 +7,8 @@ module.exports = function(grunt) {
dest: 'dist/leaflet-routing-machine.js',
options: {
browserifyOptions: {
transform: 'browserify-shim',
transform: ['browserify-shim'],
plugin: ['browserify-derequire'],
standalone: 'L.Routing'
},
banner: '/*! <%= pkg.name %> - v<%= pkg.version %> - ' +
Expand Down
11 changes: 6 additions & 5 deletions package.json
Expand Up @@ -35,16 +35,17 @@
"main": "./dist/leaflet-routing-machine.js",
"devDependencies": {
"browserify": "^13.1.0",
"browserify-derequire": "^0.9.4",
"browserify-shim": "^3.7.0",
"corslite": "0.0.7",
"derequire": "^2.0.3",
"grunt": "^1.0.1",
"grunt-browserify": "^5.0.0",
"grunt-contrib-copy": "^1.0.0",
"grunt-contrib-uglify": "^2.0.0",
"grunt-gh-pages": "^2.0.0",
"grunt-semantic-release": "^0.2.1"
},
"dependencies": {
"corslite": "0.0.7",
"grunt-semantic-release": "^0.2.1",
"polyline": "0.2.0"
}
},
"dependencies": {}
}

0 comments on commit dc722dd

Please sign in to comment.