Skip to content

Instantly share code, notes, and snippets.

var webpack = require("webpack");
var path = require('path');
var fs = require('fs');
var HtmlwebpackPlugin = require('html-webpack-plugin');
var CopyWebpackPlugin = require('copy-webpack-plugin');
var ExtractTextPlugin = require('extract-text-webpack-plugin');
var containerPath = path.resolve('./');
var webpack = require("webpack");
var path = require('path');
var fs = require('fs');
var HtmlwebpackPlugin = require('html-webpack-plugin');
var CopyWebpackPlugin = require('copy-webpack-plugin');
var ExtractTextPlugin = require('extract-text-webpack-plugin');
var containerPath = path.resolve('./');
var path = require('path');
var webpack = require('webpack');
var ExtractTextPlugin = require('extract-text-webpack-plugin');
var HtmlWebpackPlugin = require('html-webpack-plugin');
var glob = require('glob');
var alias = require('./configs/alias.js');
var postcssModules = require('./configs/postcssModules.js');
var path = require('path');
var webpack = require('webpack');
var ExtractTextPlugin = require('extract-text-webpack-plugin');
var HtmlWebpackPlugin = require('html-webpack-plugin');
var glob = require('glob');
// var alias = require('./configs/alias.js');
var postcssModules = require('./configs/postcssModules.js');
var path = require('path');
var webpack = require('webpack');
var ExtractTextPlugin = require('extract-text-webpack-plugin');
var HtmlWebpackPlugin = require('html-webpack-plugin');
var glob = require('glob');
var entries = getEntries('./source/pages/', 'js');
var chunks = Object.keys(entries);
var path = require('path');
var webpack = require('webpack');
var ExtractTextPlugin = require('extract-text-webpack-plugin');
var HtmlWebpackPlugin = require('html-webpack-plugin');
var glob = require('glob');
var entries = getEntries('./source/pages/', 'js'); // Obtain entry js file
var chunks = Object.keys(entries);
{
"name": "project",
"version": "1.0.0",
"description": "description",
"scripts": {
"dev": "webpack-dev-server --inline --hot --progress",
"build": "rm -rf ./public/* && set NODE_ENV=production&&webpack -p"
},
"author": "me",
"devDependencies": {
Hash: f4fac931febd6b2bd1fa
Version: webpack 1.13.2
Time: 142023ms
Asset Size Chunks Chunk Names
js/common.js 738 kB 0 [emitted] common
js/dashboard/api/apps/index.js 1.23 MB 2 [emitted] dashboard/api/apps/index
js/dashboard/profile/security/security.js 1.22 MB 3 [emitted] dashboard/profile/security/security
js/dashboard/profile/billing/billing.js 1.21 MB 4 [emitted] dashboard/profile/billing/billing
js/dashboard/network/domains/domains.js 1.19 MB 8 [emitted] dashboard/network/domains/domains
js/dashboard/logs/logs.js 1.14 MB 11 [emitted] dashboard/logs/logs
var path = require('path');
var webpack = require('webpack');
var ExtractTextPlugin = require('extract-text-webpack-plugin');
var HtmlWebpackPlugin = require('html-webpack-plugin');
var glob = require('glob');
var postcssModules = require('./configs/postcssModules.js');
var entries = getEntries('./source/pages/', 'js'); // Obtain entry js file
var path = require('path');
var webpack = require('webpack');
var ExtractTextPlugin = require('extract-text-webpack-plugin');
var HtmlWebpackPlugin = require('html-webpack-plugin');
var glob = require('glob');
var postcssModules = require('./configs/postcssModules.js');
var entries = getEntries('./source/pages/', 'js'); // Obtain entry js file