recently i've been setting development stack react using webpack (new me) , of course wanted benefit of shiny conveniences provides (which way great!). among tons of resources dug on internet, particularly 1 found react webpack cookbook, every step went clockwork. stumbled across hitch has been taking me several hours try solve, not being able find solution in aforementioned page, nor other source: the expose-loader wouldn't expose react global scope in chrome (not tested on other browsers) therefore not allowing react devtools extension run. tried mixing steps cookbook, using different versions of react, minified/unprocessed, nothing worked.
the problem trivial when discovered, source of problem tricky find: time using localhost:8080/webpack-dev-server/ version of development page, suggested cookbook, because allowed me not bother inability inject <script src="http://localhost:8080/webpack-dev-server.js"></script> html-webpack-plugin index file generator , provided sort of nice status bar. it works since switched localhost:8080. unfortunatelly wasn't able make work localhost:8080/webpack-dev-server/ version, though think has fact under url page loaded frame.
Comments
Post a Comment