How can I import or add my own javascript file to gulpfile?
Gulp is installed through npm, so I can enable other npm modules, for example:
var sass = require('gulp-sass');
So, I would like to do something like:
var karmaConfig = require('karma-config.js');
The directory structure looks like this:
node_modules/
gulpfile.js
package.json
karma-config.js
so the gulpfile is at the same level as the file I want to import.
source
share