# @retailmenot/roux-resolver-webpack-plugin

> Webpack resolver plugin for resolving entrypoints within a roux pantry.

Latest version **3.2.0** (published 2020-07-20) · MIT license · 0 weekly downloads

## Install

```sh
npm install @retailmenot/roux-resolver-webpack-plugin
pnpm add @retailmenot/roux-resolver-webpack-plugin
yarn add @retailmenot/roux-resolver-webpack-plugin
bun add @retailmenot/roux-resolver-webpack-plugin
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 3.2.0 |
| Published | 2020-07-20 |
| First published | 2016-09-26 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 8.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | RMN Engineering |
| Maintainers | andystalick, brandonlilly, edragic, jaredstilwell, mintyfloss, pierceray, retailmenot.admin, sharkparty, shaundubs, zero0halo |
| Keywords | roux, webpack |

## Links

- npm: https://www.npmjs.com/package/@retailmenot/roux-resolver-webpack-plugin
- Repository: https://github.com/RetailMeNotSandbox/roux-resolver-webpack-plugin
- Homepage: https://github.com/RetailMeNotSandbox/roux-resolver-webpack-plugin#readme
- Issues: https://github.com/RetailMeNotSandbox/roux-resolver-webpack-plugin/issues
- npm.io page: https://npm.io/package/@retailmenot/roux-resolver-webpack-plugin

## Dependencies (2)

- [debug](https://npm.io/package/debug.md) ^4.1.1
- [@retailmenot/roux](https://npm.io/package/@retailmenot/roux.md) ^2.2.0

## Alternatives

- [raw-loader](https://npm.io/package/raw-loader.md) — 4.3M weekly downloads
- [plop](https://npm.io/package/plop.md) — 1.4M weekly downloads
- [webpack-deadcode-plugin](https://npm.io/package/webpack-deadcode-plugin.md) — 80.3K weekly downloads
- [@storybook/preact-vite](https://npm.io/package/@storybook/preact-vite.md) — 54.2K weekly downloads
- [vite-plugin-transform](https://npm.io/package/vite-plugin-transform.md) — 2.4K weekly downloads

## Recent versions

- 3.2.0 (latest) — 2020-07-20
- 3.1.0 — 2020-05-04
- 3.0.1 — 2019-05-21
- 3.0.0 — 2019-04-26
- 2.0.0 — 2018-10-11
- 1.4.0 — 2018-05-10
- 1.3.0 — 2017-11-09
- 1.2.0 — 2017-10-03
- 1.1.0 — 2016-10-17
- 1.0.0 — 2016-09-26

## README

# @retailmenot/roux-resolver-webpack-plugin

Webpack resolver plugin for resolving entrypoints within a
roux pantry.

[![Build Status](https://travis-ci.org/RetailMeNotSandbox/roux-resolver-webpack-plugin.svg?branch=master)](https://travis-ci.org/RetailMeNotSandbox/roux-resolver-webpack-plugin)

## Installation

```sh
npm install @retailmenot/roux-resolver-webpack-plugin
```

## Usage

Add the following to your webpack config.

```
var RouxResolverWebpackPlugin = require( '@retailmenot/roux-resolver-webpack-plugin' );
{
    // rest of webpack config
    plugins: [
        new webpack.ResolverPlugin( [
            new RouxResolverWebpackPlugin()
        ] )
    ]
}
```

This 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
`@namespace/pantry/path/to/ingredient`.

You can add a query string to your require statements to resolve filetypes other than the js entrypoint. e.g.
`require('@namespace/pantry/path/to/ingredient?entry=sass')` will get you the
scss entrypoint for the ingredient named by
`@namespace/pantry/path/to/ingredient`.

## Tests

Run unit tests with `npm run test`

---
_Source: https://npm.io/package/@retailmenot/roux-resolver-webpack-plugin · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
