Skip to content

About

Shows how browserify source mapping urls work (via separate browserify fork).

Resources

Stars

1 star

Watchers

1 watching

Forks

Latest commit

 

History

12 Commits

Folders and files

Repository files navigation

browserify-sourcemap-example

Shows how browserify source mapping urls work (via separate browserify fork).

Give it a try

git clone git://github.com/thlorenz/browserify-sourcemap-example.git && cd browserify-sourcemap-example
npm install
node app

What you get

Original filenames and locations in console output

console

Separate sources

  • original files in sources
  • break points referring to original files
  • stack traces referring to locations in original files

sources

Find original files via Command-O

search

Few simple steps I took to build this

  1. Install dependencies:
  • browserify fork that supports sourceMappingURLs: npm i -S git://github.com/thlorenz/node-browserify.git#sourcemaps
  • express npm i -S express
  1. Create directories:

    mkdir -p public/js views routes

  2. Create index.html in /views which requires the bundle we'll generate in the bundle route

  3. Create app.js

  4. Create a bundle route which re-generates the bundle every time it is requested

  5. Create some sample JavaScript files that will be required via the main.js entry file

About

Shows how browserify source mapping urls work (via separate browserify fork).

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages