0.0.3 • Published 7 years ago

entry-runner-webpack-plugin v0.0.3

Weekly downloads
29
License
MIT
Repository
github
Last release
7 years ago

Webpack Plugin for running entry in another process

NPM Version Build Status Dependencies Test Coverage

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;

License

MIT