Skip to content

jamescrowley/gulpIssues

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gulpIssues

I'm seeing some weird issues with source maps when using gulp, concat and uglify. This has been reproduced on Windows, Linux and Mac :) StackOverflow question here

  1. Restore NPM using npm install
  2. Run gulp (it will watch)
  3. Run http-server to serve the file
  4. Visit http://localhost:8080
  5. Open up chrome developer tools, and navigate to 'source/scripts/myApp.someView.js'
  6. Try to add a breakpoint to the line indicated in the comments. You won't be able to
  7. Add a breakpoint where it will let you, and reload the page. You wil see the symbols have not been mapped.
  8. Comment out the 'uglify' line in gulp, and rerun gulp. Then source mapping (using concat) works fine

Image of Chrome Debugger

About

Tracking down sourcemap problems

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published