Skip to content

Instantly share code, notes, and snippets.

View thenamankumar's full-sized avatar
💻
Working

Naman Kumar thenamankumar

💻
Working
View GitHub Profile
@thenamankumar
thenamankumar / .babelrc
Created February 13, 2018 05:47
babelrc for React Starter Kit
{
"presets": [
"es2015",
"react"
],
"plugins": [
"react-hot-loader/babel"
]
}
@thenamankumar
thenamankumar / webpack.production.config.js
Last active February 13, 2018 02:33
WebPack Production Config for React Starter Kit
const ExtractTextPlugin = require('extract-text-webpack-plugin');
const CleanWebpackPlugin = require('clean-webpack-plugin');
const UglifyJsPlugin = require('uglifyjs-webpack-plugin');
const CompressionPlugin = require('compression-webpack-plugin');
const CopyWebpackPlugin = require('copy-webpack-plugin');
const path = require('path');
const Dotenv = require('dotenv-webpack');
const BUILD_DIR = path.resolve(__dirname, 'build');
const APP_DIR = path.resolve(__dirname, 'app');
@thenamankumar
thenamankumar / webpack.config.js
Created February 12, 2018 15:53
WebPack Config for React Starter Kit
const webpack = require('webpack');
const path = require('path');
const ExtractTextPlugin = require('extract-text-webpack-plugin');
const CopyWebpackPlugin = require('copy-webpack-plugin');
const BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin;
const Dotenv = require('dotenv-webpack');
const BUILD_DIR = path.resolve(__dirname, 'build');
const APP_DIR = path.resolve(__dirname, 'app');