Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gtap-dev/fractal-module-resolver-webpack-plugin
A webpack resolver plugin that resolves component imports through Fractal API
https://github.com/gtap-dev/fractal-module-resolver-webpack-plugin
fractal webpack
Last synced: about 2 months ago
JSON representation
A webpack resolver plugin that resolves component imports through Fractal API
- Host: GitHub
- URL: https://github.com/gtap-dev/fractal-module-resolver-webpack-plugin
- Owner: gtap-dev
- Created: 2018-06-08T08:14:44.000Z (over 6 years ago)
- Default Branch: main
- Last Pushed: 2022-04-09T10:26:30.000Z (over 2 years ago)
- Last Synced: 2024-10-07T21:41:50.968Z (3 months ago)
- Topics: fractal, webpack
- Language: JavaScript
- Size: 53.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Fractal Module Resolver Webpack Plugin
A Webpack resolver plugin that resolves component imports through Fractal API.
Requires Webpack 4.x.x.
## Installation
```
npm install @gotoandplay/fractal-module-resolver-webpack-plugin --save-dev
```## Usage
Require the plugin in your Webpack configuration file:
```
const FractalModuleResolver = require('@gotoandplay/fractal-module-resolver-webpack-plugin');
```Add the plugin to your resolve plugins array:
```
resolve: {
plugins: [
// resolve fractal component imports automatically
new FractalModuleResolver({
fractal: fractal,
}),
],
}
```Pass it your Fractal instance as an option.