{"id":15896060,"url":"https://github.com/retailmenotsandbox/roux-resolver-webpack-plugin","last_synced_at":"2025-03-20T15:32:14.700Z","repository":{"id":11280842,"uuid":"69059419","full_name":"RetailMeNotSandbox/roux-resolver-webpack-plugin","owner":"RetailMeNotSandbox","description":"Webpack resolver plugin for resolving entrypoints within a roux pantry","archived":false,"fork":false,"pushed_at":"2022-12-11T04:33:36.000Z","size":1699,"stargazers_count":0,"open_issues_count":15,"forks_count":3,"subscribers_count":7,"default_branch":"master","last_synced_at":"2024-04-14T12:21:56.724Z","etag":null,"topics":[],"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/RetailMeNotSandbox.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":"2016-09-23T20:44:30.000Z","updated_at":"2020-08-26T05:00:13.000Z","dependencies_parsed_at":"2023-01-11T18:04:31.148Z","dependency_job_id":null,"html_url":"https://github.com/RetailMeNotSandbox/roux-resolver-webpack-plugin","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RetailMeNotSandbox%2Froux-resolver-webpack-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RetailMeNotSandbox%2Froux-resolver-webpack-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RetailMeNotSandbox%2Froux-resolver-webpack-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RetailMeNotSandbox%2Froux-resolver-webpack-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RetailMeNotSandbox","download_url":"https://codeload.github.com/RetailMeNotSandbox/roux-resolver-webpack-plugin/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":221776117,"owners_count":16878490,"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":[],"created_at":"2024-10-06T09:05:35.457Z","updated_at":"2024-10-28T04:01:51.877Z","avatar_url":"https://github.com/RetailMeNotSandbox.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# @retailmenot/roux-resolver-webpack-plugin\n\nWebpack resolver plugin for resolving entrypoints within a\nroux pantry.\n\n[![Build Status](https://travis-ci.org/RetailMeNotSandbox/roux-resolver-webpack-plugin.svg?branch=master)](https://travis-ci.org/RetailMeNotSandbox/roux-resolver-webpack-plugin)\n\n## Installation\n\n```sh\nnpm install @retailmenot/roux-resolver-webpack-plugin\n```\n\n## Usage\n\nAdd the following to your webpack config.\n\n```\nvar RouxResolverWebpackPlugin = require( '@retailmenot/roux-resolver-webpack-plugin' );\n{\n    // rest of webpack config\n    plugins: [\n        new webpack.ResolverPlugin( [\n            new RouxResolverWebpackPlugin()\n        ] )\n    ]\n}\n```\n\nThis should enable you to `require` files within roux pantries using their ingredient name. e.g. `require('@namespace/pantry/path/to/ingredient')` will get you the JS entrypoint for the ingredient named by\n`@namespace/pantry/path/to/ingredient`.\n\nYou can add a query string to your require statements to resolve filetypes other than the js entrypoint. e.g.\n`require('@namespace/pantry/path/to/ingredient?entry=sass')` will get you the\nscss entrypoint for the ingredient named by\n`@namespace/pantry/path/to/ingredient`.\n\n## Tests\n\nRun unit tests with `npm run test`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fretailmenotsandbox%2Froux-resolver-webpack-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fretailmenotsandbox%2Froux-resolver-webpack-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fretailmenotsandbox%2Froux-resolver-webpack-plugin/lists"}