Closed ZhouHansen closed 6 years ago
This is a 🔦question.
On bankai build run, fs.copyFile() deals with the assets. On bankai start run, we use compiler.assets() only to check whether the asset file exists, which can be replaced by
bankai build
fs.copyFile()
bankai start
send(req, name) .on('error', function (err) { res.statusCode = 404 return res.end(err.message) }) .pipe(res)
How about removing the compiler.assets()?
compiler.assets() also returns the full file path. I think that's a useful abstraction, then bankai start doesn't have to path.join anything manually.
compiler.assets()
path.join
This is a 🔦question.
On
bankai build
run,fs.copyFile()
deals with the assets. Onbankai start
run, we use compiler.assets() only to check whether the asset file exists, which can be replaced byHow about removing the compiler.assets()?