Skip to content

Instantly share code, notes, and snippets.

Everything Front-end @ Amazon Pay

Kalpesh Singh kalpeshsingh

Everything Front-end @ Amazon Pay
Block or report user

Report or block kalpeshsingh

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View webpack-extract-css-demo
/** native nodejs packages **/
const path = require("path");
const fs = require("fs");
/** post css import css **/
const postCssImport = require("postcss-import");
/** extract css plugin **/
const MiniCssExtractPlugin = require("mini-css-extract-plugin");
kalpeshsingh / pre-push
Last active Sep 10, 2019
A pre-push git hook that notify Amazon Chime group
View pre-push
branch="$(git rev-parse --abbrev-ref HEAD)"
# get computer name to append in Chime message
# a branch name where you want to prevent git push. In this case, it's "master"
if [ "$branch" = "master" ]; then
echo "You can't commit directly to '"${branch}"' branch" # webstorm or intellij will show this as popup
You can’t perform that action at this time.