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

6 lines
180 B
JavaScript

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