@file-services/webpack
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