Skip to content

Instantly share code, notes, and snippets.

View timonweb's full-sized avatar

Timur timonweb

View GitHub Profile
const fs = require("fs");
const pathClient = "./node_modules/react-dev-utils/webpackHotDevClient.js";
fs.writeFileSync(
pathClient,
fs
.readFileSync(pathClient)
.toString()
.replace(
#!/bin/bash
# James Shubin, 2018
# run `make` in the first directory (or its parent recursively) that it works in
# https://purpleidea.com/blog/2018/03/10/running-make-from-anywhere/
MF='Makefile' # looks for this file, could look for others, but that's silly
CWD=$(pwd) # starting here
while true; do
if [ -e "$MF" ]; then