{"id":16292276,"url":"https://github.com/jiripudil/neon-loader","last_synced_at":"2025-03-20T03:30:45.882Z","repository":{"id":57309904,"uuid":"85387240","full_name":"jiripudil/neon-loader","owner":"jiripudil","description":"Neon loader for webpack","archived":false,"fork":false,"pushed_at":"2017-03-18T08:45:08.000Z","size":4,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-02-28T22:49:53.627Z","etag":null,"topics":["neon","webpack","webpack-loader"],"latest_commit_sha":null,"homepage":null,"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/jiripudil.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}},"created_at":"2017-03-18T08:37:10.000Z","updated_at":"2022-05-24T08:51:24.000Z","dependencies_parsed_at":"2022-09-09T08:01:56.930Z","dependency_job_id":null,"html_url":"https://github.com/jiripudil/neon-loader","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jiripudil%2Fneon-loader","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jiripudil%2Fneon-loader/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jiripudil%2Fneon-loader/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jiripudil%2Fneon-loader/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jiripudil","download_url":"https://codeload.github.com/jiripudil/neon-loader/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244543726,"owners_count":20469551,"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":["neon","webpack","webpack-loader"],"created_at":"2024-10-10T20:05:19.429Z","updated_at":"2025-03-20T03:30:45.596Z","avatar_url":"https://github.com/jiripudil.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# neon-loader for webpack\n\n[![npm version](https://img.shields.io/npm/v/neon-loader.svg)](https://npmjs.com/package/neon-loader)\n[![npm monthly downloads](https://img.shields.io/npm/dm/neon-loader.svg)](https://npmjs.com/package/neon-loader)\n[![npm downloads](https://img.shields.io/npm/dt/neon-loader.svg)](https://npmjs.com/package/neon-loader)\n\n\n[Neon](https://ne-on.org/) loader for [webpack](https://webpack.github.io/) using David Matějka's [neon-js](https://github.com/matej21/neon-js).\n\n\n## Installation\n\n```sh\nnpm install neon-loader\n```\n\n\n## Usage\n\n### Configuration\n\n```js\nmodule.exports = {\n\tmodule: {\n\t\trules: [\n\t\t\t{\n\t\t\t\ttest: /\\.neon$/,\n\t\t\t\tuse: 'neon-loader'\n\t\t\t}\n\t\t]\n\t}\n}\n```\n\n```js\nimport config from 'config.neon';\n```\n\n\n### CLI\n\n```sh\nwebpack --module-bind 'neon=neon-loader'\n```\n\n```js\nimport config from 'config.neon';\n```\n\n\n### Inline\n\n```js\nimport config from 'neon-loader!config.neon');\n```\n\n\n\n## Options\n\n### `forceObject`\n\nBy default, `neon-js` detects if the loaded file contains a list and returns a JS array if so. You can use this option to force 'neon-js' to transform lists into objects:\n\n```js\nimport listObject from 'neon-loader?forceObject!list.neon';\n```\n\n\n## License\n\nMIT (http://www.opensource.org/licenses/mit-license.php)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjiripudil%2Fneon-loader","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjiripudil%2Fneon-loader","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjiripudil%2Fneon-loader/lists"}