copy.js 508 B

123456789101112131415161718
  1. /**
  2. * React Static Boilerplate
  3. * https://github.com/koistya/react-static-boilerplate
  4. *
  5. * Copyright © 2015-2016 Konstantin Tarkus (@koistya)
  6. *
  7. * This source code is licensed under the MIT license found in the
  8. * LICENSE.txt file in the root directory of this source tree.
  9. */
  10. const task = require('./task')
  11. const fs = require('fs-extra')
  12. /**
  13. * Copies static files such as robots.txt, favicon.ico to the
  14. * output (build) folder.
  15. */
  16. module.exports = task('copy', fs.copy('./src/static', './build'))