angular_page_visibility
angular_page_visibility copied to clipboard
'dist' version includes a reference to a missing source map
I came across an issue where I was referencing the dist
folder path instead of the raw js
path. It resulted in this issue, because the .map
does not exist in the dist folder, but is still referenced from its output.
Warning: Unable to read "/usr/src/app/bower_components/angular_page_visibility/dist/page_visibility.js.map" file (Error code: ENOENT). Use --force to continue.
Two possible solutions:
- Either remove the source map reference from inside the output JS
- Or, better yet, copy across the source map as part of the build/output process
Hi @taitems , thanks for reporting! :smile: Would you like to create a pull request?