Here is the content of my webpack.config.js file:
var path = require('path');
var webpack = require('webpack');
var CommonsChunkPlugin = webpack.optimize.CommonsChunkPlugin;
var autoprefixer = require('autoprefixer');
var HtmlWebpackPlugin = require('html-webpack-plugin');
var ExtractTextPlugin = require('extract-text-webpack-plugin');
var CopyWebpackPlugin = require('copy-webpack-plugin');
var ENV = process.env.npm_lifecycle_event;
var isTest = ENV === 'test' || ENV === 'test-watch';
var isProd = ENV === 'build';
module.exports = function makeWebpackConfig() {
var config = {};
// Rest of the configuration settings goes here...
When I run commands like webpack or webpack -p, it generates three files. However, all these files contain output as strings and use eval function for deployment. One file in particular has a large size (7MB) as shown in the image below: https://i.sstatic.net/Js3hb.png
I am looking to simplify the JavaScript files without using eval inside them, similar to how other common minification libraries work. Additionally, I would like to reduce the size of the vendor file.