Comments (2)
Sorry for late reply!
According to https://github.com/webpack/docs/wiki/hot-module-replacement-with-webpack
If HMR is disabled all HMR code is removed by the compiler (wrap it in if(module.hot))
and everything of elm-hot-loader is wrapped in if(module.hot) :
https://github.com/fluxxu/elm-hot-loader/blob/master/hmr.js#L1
I think you should use different webpack config for development and production. Here is an example:
https://github.com/moarwick/elm-webpack-starter/blob/master/webpack.config.js#L81
Thanks!
from elm-hot-loader.
@fluxxu oh, I forgot that, thank you
from elm-hot-loader.
Related Issues (20)
- Error on 0.3.0 when no ports are present
- Incompatible with [email protected] HOT 2
- Websockets and reloading: one subscription - two open requests upon reload HOT 3
- Object.assign HOT 2
- Peer dependency on elm-webpack-loader -- can it be removed? HOT 7
- Initial command obliterates previous state HOT 4
- Document how to use the plugin with a compiled-to-js Elm app HOT 3
- 0.18 support HOT 1
- Only works with programWithFlags ? HOT 1
- I see a weird error when not using Html.Events HOT 2
- Changes not detected when elm-webpack "cache" option is enabled HOT 3
- Update elm-hot-loader to use latest elm-webpack-loader HOT 7
- doesn't work on webpack-dev-server 2 HOT 3
- Feature: Flag to hot reload only after successful compile HOT 1
- BUG: Not reloading Model in Module HOT 1
- Not triggering reload when I save any module other than Main HOT 6
- Recursion?
- add flag for disabling console message logging
- Compiler errors in the browser HOT 1
- Hotloading fails to retain state after compile error
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 elm-hot-loader.