Skip to content

Instantly share code, notes, and snippets.

View mdecorte's full-sized avatar
🚂
🚃🚃🚋🚃🚃🚃🚃🚋🚃🚃🚃

Marius de Corte mdecorte

🚂
🚃🚃🚋🚃🚃🚃🚃🚋🚃🚃🚃
View GitHub Profile
@mdecorte
mdecorte / createUsefulAssetManifest.js
Last active July 1, 2022 06:30
Script to create a useful asset-manifest file for CRA-2 that only contains paths to assets needed on page load
const fs = require('fs')
const path = require('path')
// for CRA-2 un-comment line 5 and comment line 6
// const assetManifest = require('./build/asset-manifest.json')
const assetManifest = require('./build/asset-manifest.json')[files]
const indexFilePath = path.join(__dirname, 'build/index.html')
const BUILD_PATH = path.join(__dirname, 'build/useful-asset-manifest.json')

Front-End manifesto

"Well-crafted software over comprehensive documentation" software craftsmanship manifesto.

Therefore this manifesto is as short as possible. See it as an baseline, definiton of done, or the standards of the project.

To help ourself as developers, try to automate the process as far as possible.