{"id":13565729,"url":"https://github.com/simonh1000/elm-webpack-starter","last_synced_at":"2025-10-03T18:42:21.985Z","repository":{"id":20175818,"uuid":"81865571","full_name":"simonh1000/elm-webpack-starter","owner":"simonh1000","description":"Elm 0.19.1, Webpack 5 \u0026 Tailwind","archived":false,"fork":false,"pushed_at":"2025-01-28T11:25:50.000Z","size":1237,"stargazers_count":343,"open_issues_count":2,"forks_count":38,"subscribers_count":10,"default_branch":"master","last_synced_at":"2025-05-16T05:02:02.258Z","etag":null,"topics":["developer-tools","elm","hot-reload","webpack-dev-server","webpack5"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/simonh1000.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-02-13T19:59:35.000Z","updated_at":"2025-01-28T11:25:54.000Z","dependencies_parsed_at":"2024-01-16T18:59:54.718Z","dependency_job_id":"2855adbe-cf19-4ede-85a4-3b97db8893d5","html_url":"https://github.com/simonh1000/elm-webpack-starter","commit_stats":null,"previous_names":[],"tags_count":1,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonh1000%2Felm-webpack-starter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonh1000%2Felm-webpack-starter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonh1000%2Felm-webpack-starter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonh1000%2Felm-webpack-starter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/simonh1000","download_url":"https://codeload.github.com/simonh1000/elm-webpack-starter/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254471040,"owners_count":22076583,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["developer-tools","elm","hot-reload","webpack-dev-server","webpack5"],"created_at":"2024-08-01T13:01:54.056Z","updated_at":"2025-10-03T18:42:16.936Z","avatar_url":"https://github.com/simonh1000.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"# Elm 0.19.1 with Webpack 5, Hot Reloading \u0026 Tailwind\n\n[![CircleCI](https://circleci.com/gh/simonh1000/elm-webpack-starter.svg?style=svg)](https://circleci.com/gh/simonh1000/elm-webpack-starter)\n\nElm dev environment with hot-loading (i.e. state is retained as you edit your code - Hot Module Reloading, HMR)). I use this daily for my professional work. Like elm-community/elm-webpack-starter but using Webpack 4.\n\n## Installation\n\nClone this repo into a new project folder and run install script.\n(You will probably want to delete the .git/ directory and start version control afresh.)\n\nWith npm\n\n```sh\n$ git clone git@github.com:simonh1000/elm-webpack-starter.git new-project\n$ cd new-project\n$ npm install\n```\n\n**Notes** \n\n- This starter is formatted with [elm-format globally](https://github.com/avh4/elm-format#installation-), which you will also want to install. \n\n## Developing\n\nStart with Elm debug tool with either\n```sh\n$ npm start\nor\n$ npm start --nodebug\n```\n\nthe `--nodebug` removes the Elm debug tool. This can become valuable when your model becomes very large.\n\nOpen http://localhost:3000 and start modifying the code in /src.  **Note** that this starter expects you have installed [elm-format globally](https://github.com/avh4/elm-format#installation-). \n\n## Production\n\nBuild production assets (js and css together) with:\n\n```sh\nnpm run prod\n```\n\n## Static assets\n\nJust add to `src/assets/` and the production build copies them to `/dist`\n\n## Testing\n\n[Install elm-test globally](https://github.com/elm-community/elm-test#running-tests-locally)\n\n`elm-test init` is run when you install your dependencies. After that all you need to do to run the tests is\n\n```\nnpm test\n```\n\nTake a look at the examples in `tests/`\n\nIf you add dependencies to your main app, then run `elm-test --add-dependencies`\n\n\u003c!-- I have also added [elm-verify-examples](https://github.com/stoeffel/elm-verify-examples) and provided an example in the definition of `add1` in App.elm. --\u003e\n\n## Elm-analyse\n\nElm-analyse is a \"tool that allows you to analyse your Elm code, identify deficiencies and apply best practices.\" Its built into this starter, just run the following to see how your code is getting on:\n\n```sh\n$ npm run analyse\n```\n\n## Circle CI\n\n```sh\n$ circleci local execute --job build\n```\n\n\u003chr /\u003e\n\n## ES6\n\nThis starter includes [Babel](https://babeljs.io/) so you can directly use ES6 code.\n\n## Changelog\n\n - 4.0.0  - Webpack 5, adds Tailwind support out of the box\n - 3.10.4 - Use better webpack defaults in dev mode\n - 3.10.0 - Css minify\n - 3.9.3 - Update deps\n - 3.9.2 - Update elm/core and other deps\n - 3.9.1 - Version 0.19.1\n - 3.9.0 - Switch the closure compiler for minification in prod\n - 3.8.0 - Update deps\n - 3.7.0 - Add elm-analyse\n - 3.6.0 - Add CI script\n - 3.5.0 - Simpler means to work with/out the debug window\n - 3.4.0 - Add ability to start dev mode without debug window\n - 3.3.0 - Switch to elm/http 2.0.0 (and other deps updates)\n - 3.2.0 - Add elm-minify to prod builds (thanks Asger)\n - 3.1.0 - Revert to webpack-dev-server with example\n - 3.0.2 - bugfixes (mostly for tests)\n - 3.0.1 - use publicPath to ensure compatibility with more complex routes\n - 3.0.0 - Version 0.19\n - 2.1.0 - switch to webpack-serve (from webpack dev server)\n - 2.0.0\n    - Remove Bootstrap (use purecss as simple alternative - you don't want me choosing your css framework after all)\n    - Compile CSS into separate file\n - 1.2.0 - Webpack 4, Babel 7\n - 1.1.0 - add elm-verify-examples\n\n ## How it works\n\n`npm run dev` maps to `webpack-dev-server --hot --colors --port 3000` where\n\n  - `--hot` Enable webpack's Hot Module Replacement feature\n  - `--port 3000` - use port 3000 instead of default 8000\n  - inline (default) a script will be inserted in your bundle to take care of reloading, and build messages will appear in the browser console.\n  - `--colors` should show the colours created in the original Elm errors, but does not (To Fix)\n  \nOne alternative is to run `npx webpack-dev-server --hot --colors --host=0.0.0.0 --port 3000` which will enable your dev server to be reached from other computers on your local network\n\n ## Credits\n\n A long time ago this code was forked from https://github.com/fluxxu/elm-hot-loader\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimonh1000%2Felm-webpack-starter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsimonh1000%2Felm-webpack-starter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimonh1000%2Felm-webpack-starter/lists"}