Skip to content

Instantly share code, notes, and snippets.

View howardjones's full-sized avatar

Howard Jones howardjones

  • United Kingdom
View GitHub Profile
@howardjones
howardjones / postbuild.js
Last active January 17, 2018 11:26 — forked from bfocht/postbuild.js
post build script for create-react-app to move the js to a dist folder
// Taken almost verbatim from https://gist.github.com/bfocht/a0def4432d0f93dc28bc7cf64ebe8be1
// copy the just-built js code into the place weathermap/cacti expect to find it
const fs = require('fs');
const src = './build/';
const dest = '../../cacti-resources/user/';
const targets = ["main.js", "main.css"];