Войти с помощью github
Форум
/
8 years ago
сборка *.node.js gulp ом
rhlog
project-stub
gulp-bem
как настроить сборку ?.node.js файдла галпом
Комментарии: 4
gulp.src('*.node.js').pipe(concat('resulting.node.js')).pipe(gulp.dest('./out'))@rhlog а какую именно задачу должна решить сборка
?.node.js??.node.js для бекэнда. У меня получилось следующее nodejs: bundle => merge( gulp.src(pathToYM), bundle.src('nodejs') ).pipe(concat(bundle.name + '.node.js'))
файл собирается но не выполняется modules undefined
получилось добавил gulp-insert nodejs: bundle => bundle.src('nodejs') ).pipe(concat(bundle.name + '.node.js').pipe(insert.prepend('modules = require("ym");\n\n'))