Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
elm-hot-webpack-loader
Advanced tools
Readme
Hot code swapping support for Elm 0.19. This improves the Elm development workflow by automatically reloading 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 with elm-webpack-loader. If you're looking for something that doesn't require Webpack, see elm-hot (although integrating it will be much more work).
elm-webpack-loader
5.0.0$ npm install --save-dev elm-hot-webpack-loader
You will also need to install elm-webpack-loader, if you haven't already.
Assuming that you're already using elm-webpack-loader
, just add { loader: 'elm-hot-webpack-loader' }
immediately
before elm-webpack-loader
in the use
array.
It should look something like this:
module.exports = {
module: {
rules: [
{
test: /\.elm$/,
exclude: [/elm-stuff/, /node_modules/],
use: [
{ loader: 'elm-hot-webpack-loader' },
{
loader: 'elm-webpack-loader',
options: {
cwd: __dirname
}
}
]
}
]
}
}
It's important that the elm-hot-webpack-loader
loader comes before the elm-webpack-loader
in the use
array.
When running webpack-dev-server
, you must add the --hot
flag.
Check out the example app.
Elm hot code swapping is based on the work of Flux Xu's elm-hot-loader. That project is no longer maintained, and it does not support Elm 0.19.
FAQs
Webpack loader providing hot code swapping for Elm
The npm package elm-hot-webpack-loader receives a total of 4,294 weekly downloads. As such, elm-hot-webpack-loader popularity was classified as popular.
We found that elm-hot-webpack-loader demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.