@gotoandplay/fractal-module-resolver-webpack-plugin

0.2.0 • Public • Published

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.

Readme

Keywords

none

Package Sidebar

Install

npm i @gotoandplay/fractal-module-resolver-webpack-plugin

Weekly Downloads

43

Version

0.2.0

License

MIT

Unpacked Size

12.4 kB

Total Files

5

Last publish

Collaborators

  • gtap-dev
  • mihkeleidast