Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ssuman/parcel-plugin-elm
A parcel plugin that enables elm support
https://github.com/ssuman/parcel-plugin-elm
Last synced: 4 days ago
JSON representation
A parcel plugin that enables elm support
- Host: GitHub
- URL: https://github.com/ssuman/parcel-plugin-elm
- Owner: ssuman
- Created: 2017-12-17T12:00:28.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-09-19T14:25:02.000Z (about 6 years ago)
- Last Synced: 2024-10-01T07:27:36.134Z (about 1 month ago)
- Language: JavaScript
- Size: 10.7 KB
- Stars: 44
- Watchers: 3
- Forks: 3
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-ccamel - ssuman/parcel-plugin-elm - A parcel plugin that enables elm support (JavaScript)
- awesome-parcel - Elm - Plugin that enables Elm support. (Plugins / JavaScript dialects, other languages)
README
A parcel plugin that enables elm support
# Usage
```
$ npm install parcel-plugin-elm -s
```# Fullscreen Mode
There is a know issue in elm apps in fullscreen mode with parcel HMR(hot module replacement). If you make a change to any `.elm ` file, a new version of your app is appended to the DOM rather than replacing existing content. An option may be added to parcel to allow for full page reloading on save in the future, but a workaround right now is adding:
```
if (module.hot) {
module.hot.dispose(() => {
window.location.reload();
});
}
```
to your main javascript file used to mount elm.This bug is only in fullscreen mode, so you embed your elm app to a DOM node that will also fix the issue.