Read task for Start.
npm install --save-dev start-read
# or
yarn add --dev start-read
import start from 'start';
import reporter from 'start-pretty-reporter';
import files from 'start-files';
import clean from 'start-clean';
import read from 'start-read';
import babel from 'start-babel';
import write from 'start-write';
export const build = () => start(reporter())(
files('build/'),
clean(),
files('lib/**/*.js'),
read(),
babel(),
write('build/')
);
This task relies on array of files and provides [{ path, data, map }]
output, see documentation for details.
read(encoding)
encoding
–fs.readFile
encoding option,utf-8
by default