我试图用一口一些JS / CSS从复制node_modules到wwwroot在一个ASP.Net核心应用。
我有我认为相当简单的 gulpfile.js
var gulp = require('gulp');
gulp.task('copy-files', function () {
var assets = {
js: [
'./node_modules/bootstrap/dist/js/bootstrap.js'
],
css: [
'./node_modules/bootstrap/dist/css/bootstrap.css'
]
};
_(assets).forEach(function (assets, type) {
gulp.src(assets).pipe(gulp.dest('./wwwroot/' + type));
});
});
Run Code Online (Sandbox Code Playgroud)
但是,当我查看 VS Task Runner 时,它只显示一个错误:

如何获得有关错误的更多信息?