npm.io
5.7.1 • Published 4 years ago

@file-services/webpack

Licence
MIT
Version
5.7.1
Deps
1
Size
9 kB
Vulns
0
Weekly
0
Stars
18

@file-services/webpack

npm version

Helpers for creation of webpack-compatible file systems.

Installation

Install library in project:

npm i @file-services/webpack

Usage

import webpack from 'webpack';
import { nodeFs } from '@file-services/node';
import { createWebpackFs } from '@file-services/webpack';

const compiler = webpack({
  /* webpack config */
});

const webpackFs = createWebpackFs(nodeFs);
compiler.inputFileSystem = webpackFs;
compiler.outputFileSystem = webpackFs;

compiler.run((e, stats) => {
  /* handle bundling result */
});

License

MIT