I'm working with a coworkers code today and I saw something I've never seen before.
I understand the first part of the statement (require in the file clean.js).
But what's with the second set of parentheses?
require('./tasks/clean')('js', './dist/js')
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…