Comments (3)
You need to navigate to http://localhost:8000/webpack-dev-server/ (only found this out by reading through the Gruntfile)
from generator-react-webpack.
To avoid webpack-dev-server in the url with hot-loader, add an entry in your webpack.config.js like below:
entry: [
'webpack-dev-server/client?http://127.0.0.1:8000',
'webpack/hot/only-dev-server',
'./src/scripts/components/TestApp.js'
],
Then you can visit http://localhost:8000/ with hot-loader enabled.
from generator-react-webpack.
👍 This was a great help. Not sure why hot reload only works at the Webpack dev server URL out of the box. Would prefer to hit the bare url to have hot reloading.
from generator-react-webpack.
Related Issues (20)
- Running the generator throws error on expected promise object at the beginning of execution
- NPM Run Dist won't copy over all image assets
- SyntaxError: Unexpected token: name (path) [./cfg/base.js:2,0] when running dist
- Optionally use HtmlWebpackPlugin
- Static files
- how to add postCss plugin,please tell me details of it
- Redux link in README.md seems incorrect
- Hot reloader not working. HOT 1
- Setup Issue
- Generate A Container?
- Cannot read property 'apply' of undefined
- Missing node modules when deploying to Heroku HOT 1
- impossible to use any node package added
- How can I set webpack proxy in cfg/base.js
- When you choose Scss in the installation - all generated files are .css
- install warn HOT 1
- "Uncaught SyntaxError: Unexpected token <" on Production Server
- React Version is Old
- Error trying to run npm run dist
- How can auto open the browser?
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 generator-react-webpack.