{"id":16318647,"url":"https://github.com/vic/elmx-webpack-preloader","last_synced_at":"2026-05-01T19:32:21.190Z","repository":{"id":66386274,"uuid":"57361200","full_name":"vic/elmx-webpack-preloader","owner":"vic","description":"Compile elmx to elm files before using elm-webpack-loader","archived":false,"fork":false,"pushed_at":"2018-04-19T07:13:27.000Z","size":14,"stargazers_count":2,"open_issues_count":1,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-13T18:18:59.382Z","etag":null,"topics":["elm","elmx","webpack-loader","webpack-plugin"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/elmx-webpack-preloader","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vic.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":"2016-04-29T06:42:20.000Z","updated_at":"2018-04-19T07:09:10.000Z","dependencies_parsed_at":"2023-06-18T23:35:52.240Z","dependency_job_id":null,"html_url":"https://github.com/vic/elmx-webpack-preloader","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/vic/elmx-webpack-preloader","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vic%2Felmx-webpack-preloader","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vic%2Felmx-webpack-preloader/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vic%2Felmx-webpack-preloader/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vic%2Felmx-webpack-preloader/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vic","download_url":"https://codeload.github.com/vic/elmx-webpack-preloader/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vic%2Felmx-webpack-preloader/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32510689,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-30T13:12:12.517Z","status":"online","status_checked_at":"2026-05-01T02:00:05.856Z","response_time":64,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["elm","elmx","webpack-loader","webpack-plugin"],"created_at":"2024-10-10T22:24:12.374Z","updated_at":"2026-05-01T19:32:21.169Z","avatar_url":"https://github.com/vic.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# elmx-webpack-preloader\n[![help maintain this lib](https://img.shields.io/badge/looking%20for%20maintainer-DM%20%40vborja-663399.svg)](https://twitter.com/vborja)\n\n\nCompile [elmx](https://github.com/pzavolinsky/elmx) to elm files before using [elm-webpack-loader](https://github.com/rtfeldman/elm-webpack-loader)\n\n[Example App](https://github.com/vic/elmx-webpack-boilerplate)\n\n## Installation\n\n```shell\nnpm install --save-dev elmx-webpack-preloader\n```\n\n## Usage\n\nAdd the preload to your webpack config.\nAny `.elmx` dependency will be compiled to an `.elm` file.\n\nIf no `outputDirectory` is specified, the compiled elm will be placed\nin the same directory as it's elmx source.\n\n```javascript\n{\n  module: {\n    preLoaders: [\n      {\n        // Notice that the preloader actually reads .elm files looking for dependencies to be compiled from elmx\n        test: /\\.elm$/,\n        loader: 'elmx-webpack-preloader',\n        include: [join(__dirname, \"src/elm\")],\n        query: {\n          sourceDirectories: ['src/elm']\n          outputDirectory: '.tmp/elm'\n        }\n      }\n    ],\n    loaders: [\n      {\n        test: /\\.elm$/,\n        loader: 'elm-webpack',\n        include: [join(__dirname, \"src/elm\"), join(__dirname, \".tmp/elm\")]\n      }\n    ]\n  }\n}\n```\n\nWhen using an `outputDirectory` make sure to include it on your `elm-package.json`\n\n```json\n{\n    \"source-directories\": [\n        \"src/elm\",\n        \".tmp/elm\"\n    ]\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvic%2Felmx-webpack-preloader","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvic%2Felmx-webpack-preloader","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvic%2Felmx-webpack-preloader/lists"}