Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Live reload Webpack plugin for Elm.

License

NotificationsYou must be signed in to change notification settings

ronanyeah/elm-reloader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hot code swapping support for Elm 0.19. This automatically reloads your code in the browser after a change, while preserving your current app state.

This package provides a Webpack loader that can be used in conjunction withelm-webpack-loader. If you're looking for something that doesn't require Webpack, seeelm-hot.

Installation

$ npm install --save-dev elm-reloader

You will also need to installelm-webpack-loader, if you haven't already.

Usage

Assuming that you're already usingelm-webpack-loader, just add{ loader: 'elm-reloader' } immediatelybeforeelm-webpack-loader in theuse array.

It should look something like this:

module.exports={module:{rules:[{test:/\.elm$/,exclude:[/elm-stuff/,/node_modules/],use:[{loader:'elm-reloader'},{loader:'elm-webpack-loader',options:{cwd:__dirname}}]}]}}

Example

Check out theexample app.


[8]ページ先頭

©2009-2025 Movatter.jp