title: How to import gulp tasks?
body: <p>I'm referencing this article:
  <a href="https://css-tricks.com/combine-webpack-gulp-4/" rel="nofollow noreferrer">https://css-tricks.com/combine-webpack-gulp-4/</a></p>
  
  <p>And this repository:
  <a href="https://github.com/PascalAOMS/gulp4-webpack" rel="nofollow noreferrer">https://github.com/PascalAOMS/gulp4-webpack</a></p>
  
  <p>I'm trying to import gulp tasks from one file into another. I tried by writing the tasks as functions then exporting those as normal, but started getting an error "Did you forget to signal async completion?". I also thought maybe I could write the tasks as usual, but wrap them in a function and export that, but the same error.</p>
  
  <p>For more clarity I'm trying to figure out how to add tasks to the build gulp.series in this file <a href="https://github.com/PascalAOMS/gulp4-webpack/blob/master/tasks/index.js" rel="nofollow noreferrer">https://github.com/PascalAOMS/gulp4-webpack/blob/master/tasks/index.js</a></p>
  
  <p>Anyone have any ideas?</p>
  
  <p>Here's the index.js</p>
  
  <pre><code> import gulp from 'gulp';
   import { scripts } from './webpack';
   import { server }  from './server';
   import { assets } from './tasks/assets';
  
   export const dev   = gulp.series( server )
   export const build = gulp.series( scripts, assets )
   export default dev
  </code></pre>
  
  <p>Here's an example of the asset task:</p>
  
  <pre><code>import gulp from 'gulp';
  const assets = () =&gt;  {
     return gulp.src(fonts.src)
        .pipe(gulp.dest(fonts.dist));
  }
  export { assets };
  </code></pre>