tasks/build.js
function createElementModule() {
  return gulp
    .src(`./${config.src.path}/${config.src.entrypoint}`)
    .pipe(
      modifyFile(content => {
        return content.replace(
          new RegExp(`../node_modules/${config.element.scope}/`, 'g'),
          '../'
        );
      })
    )
    .pipe(
      rename({
        basename: config.element.tag
      })
    )
    .pipe(gulp.dest(`./${config.temp.path}`));
}
function createElementModule() {
  return gulp
    .src(`./${config.src.path}/${config.src.entrypoint}`)
    .pipe(
      modifyFile(content => {
        return content.replace(
          new RegExp(`../node_modules/${config.element.scope}/`, 'g'),
          '../'
        );
      })
    )
    .pipe(
      rename({
        basename: config.element.tag
      })
    )
    .pipe(gulp.dest(`./${config.temp.path}`));
}
function createElementModule ( ) { return gulp . src ( ` ${ config . src . path } ${ config . src . entrypoint } ` ) . pipe ( modifyFile ( content => { return content . replace ( new RegExp ( ` ${ config . element . scope } ` , 'g' ) , '../' ) ; } ) ) . pipe ( rename ( { basename : config . element . tag } ) ) . pipe ( gulp . dest ( ` ${ config . temp . path } ` ) ) ; }
Create the element module file.

@returns {NodeJS.ReadWriteStream}
Create the element module file .