0.0.3 • Published 7 years ago
entry-runner-webpack-plugin v0.0.3
Webpack Plugin for running entry in another process
Install
yarn add -D entry-runner-webpack-plugin
npm add --save-dev entry-runner-webpack-plugin
Usage
Javascript
const EntryRunnerWebpackPlugin = require('entry-runner-webpack-plugin');
const path = require('path');
const baseDir = path.resolve(__dirname);
const config = {
plugins: [
new EntryRunnerWebpackPlugin(path.resolve(__dirname), 'main.js')
]
};
TypeScript
import * as path from 'path';
import * as webpack from 'webpack';
import EntryRunnerWebpackPlugin from 'entry-runner-webpack-plugin';
const baseDir = path.resolve(__dirname);
const config: webpack.Configuration = {
plugins: [
new EntryRunnerWebpackPlugin(path.resolve(__dirname), 'main.js')
]
};
export default config;