UNPKG

@mapbox/batfish

Version:

The React-powered static-site generator you didn't know you wanted

23 lines (19 loc) 443 B
// 'use strict'; const path = require('path'); const del = require('del'); const cleanUpTempFiles = ( batfishConfig ) => { return del( ['assets.json', 'static-render-pages.js', 'static-render-pages.js.map'], { force: true, cwd: path.join( batfishConfig.outputDirectory, batfishConfig.publicAssetsPath ) } ); }; module.exports = cleanUpTempFiles;