Gulp simple concatenation of main file that requires another JS file
问题 I have a simple file: main.js: 'use strict'; const somefile = require('somefile') // class MyClass ... // some js I want to use gulp to create a minified file that has the code from somefile.js included too. But for some reason, I can't find a way to do this. Inside my minified file I have require('somefile') , not the full code. gulpfile.js const gulp = require('gulp'); const minify = require('gulp-minify'); const babel = require('gulp-babel'); const include = require("gulp-include"); const