Shows how browserify source mapping urls work (via separate browserify fork).
git clone git://github.com/thlorenz/browserify-sourcemap-example.git && cd browserify-sourcemap-example
npm install
node app
- original files in sources
- break points referring to original files
- stack traces referring to locations in original files
- Install dependencies:
- browserify fork that supports sourceMappingURLs:
npm i -S git://github.com/thlorenz/node-browserify.git#sourcemaps - express
npm i -S express
-
Create directories:
mkdir -p public/js views routes
-
Create index.html in /views which requires the bundle we'll generate in the bundle route
-
Create app.js
-
Create a bundle route which re-generates the bundle every time it is requested
-
Create some sample JavaScript files that will be required via the
main.jsentry file


