Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ronanyeah/elm-webpack
An Elm + Webpack boilerplate with live reload.
https://github.com/ronanyeah/elm-webpack
elm elm-ui example typescript webpack webpack5
Last synced: 24 days ago
JSON representation
An Elm + Webpack boilerplate with live reload.
- Host: GitHub
- URL: https://github.com/ronanyeah/elm-webpack
- Owner: ronanyeah
- Created: 2020-07-21T14:13:07.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-10-27T19:26:52.000Z (about 1 year ago)
- Last Synced: 2023-10-27T20:27:03.685Z (about 1 year ago)
- Topics: elm, elm-ui, example, typescript, webpack, webpack5
- Language: Elm
- Homepage:
- Size: 966 KB
- Stars: 5
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Elm + Webpack example
## Requirements
- [npm CLI](https://docs.npmjs.com/)---
## How to fetch dependencies
- `npm install`## How to build
- `npm run build`## How to develop
- `npm run watch`
- Navigate to [localhost:8000](http:localhost:8000).---
## Notes
This scaffold uses Webpack 5, which removed the automatic Node.js polyfilling from previous Webpack versions. If this causes errors in your dependencies, you can emulate the effect in `webpack.config.js`:
```
{
...
resolve: {
fallback: {
crypto: false,
stream: false,
},
},
plugins: [
new webpack.ProvidePlugin({
Buffer: ["buffer", "Buffer"],
}),
...
],
}
```
Or by using [`node-polyfill-webpack-plugin`](https://www.npmjs.com/package/node-polyfill-webpack-plugin):
```
const NodePolyfillPlugin = require("node-polyfill-webpack-plugin");{
...
plugins: [
new NodePolyfillPlugin(),
...
],
}
```