webpack-auto-inject-version/demo/tests/helpers/get-dist-file.js

7 lines
180 B
JavaScript
Raw Permalink Normal View History

const fs = require('fs');
const path = require('path');
export default function getDistFile(file) {
return fs.readFileSync(path.resolve(process.cwd(), 'dist', file), 'utf8');
}