Comments (6)
Hi, is this something you recently implemented? I am noticing a
//# sourceMappingURL=data:application/json;base64,...
string in my livereactload-ed page. I especially wanted to ask about this because your example gulpfile has the line:
sourcemaps = require('gulp-sourcemaps'),
I thought that line was guiding me to set up my own sourcemaps with gulp-sourcemaps (gulp-sourcemaps is never actually used in the sample gulpfile). I spent a couple hours trying to get things working that way and kept getting messages that my sourcemaps were pointing to files that could not be found. I finally decided to give up and then noticed that the sourceMappingURL line was being put in there. I have no idea how this is happening, but I currently have excellent source maps working.
It might help other people avoid making this same mistake if the require('gulp-sourcemaps')
statement is removed from that sample gulpfile.
Thanks for providing such a great tool!
from livereactload.
Hi Chris,
Yeah, I forgot that dependency there. It'll be removed in the next release. Thanks!
from livereactload.
Thanks for clarifying
from livereactload.
That would be awesome if livereactload could reload sourcemaps during hot reload! Do you think is that possible?
from livereactload.
Actually it should support source maps - if you enable source maps from e.g. babelify
then you'll be able to debug errors from you ES6 code.
However, existing breakpoints are not working because LiveReactload reload the whole bundle script (breakpoints apply to "old" bundle file). If you have disabled cache then you may be able to get around this by using preventCache
option (see https://github.com/milankinen/livereactload#configuration-options).
from livereactload.
Not applicative anymore since 2.x
from livereactload.
Related Issues (20)
- Working with rails HOT 5
- Reload Complete, but no changes in HTML HOT 6
- (notsureif) Question about implementation, or bug. HOT 2
- Examples are broken HOT 2
- Loads two different modules HOT 1
- Source map path/filename issues HOT 4
- Option to disable transform warning HOT 5
- Multi-bundle support HOT 4
- rev=<revision_number> added to hot-reloaded module path results in Chrome not pausing on breakpoints HOT 15
- Add link to up-to-date Redux example HOT 2
- Doesn't detect changes for functions that generate DOM component changes HOT 13
- template literals in npm module HOT 4
- Gulp process does not exit when running tasks. #90 HOT 1
- MdDialog unit test nativeElementnot updated
- Always loading react-hot-loader production AppContainer HOT 3
- Add module.onAnyUpdate hook that triggers every time after reloading event HOT 1
- README "Demo" thumbnail image missing HOT 1
- Support of react-hot-loader v4.0 HOT 2
- livereload when chart components are updated HOT 1
- Does not work with browserify-global-shim HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from livereactload.