yarn add -D entry-runner-webpack-plugin
npm add --save-dev entry-runner-webpack-plugin
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')
]
};
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;