我正在尝试向我的angularjs项目中添加a2组件,但是当我尝试运行命令gulp bundle时,它会出现以下错误
Unhandled rejection Error on fetch for at file:///var/www/html/xper/
Error: EISDIR: illegal operation on a directory, read
at Error (native)
我不知道任何人可以帮助我的错误。
MY GULP任务代码:
gulp.task('bundle', function() {
var SystemBuilder = require('systemjs-builder');
var builder = new SystemBuilder();
builder.loadConfig('./system.config.js')
.then(function(){
var outputFile = 'dist/bundle.js';
return builder.buildStatic('app', outputFile, {
minify: true,
mangle: true,
rollup: true
});console.log('hi')
})
.then(function(){
console.log('bundle built successfully!');
});
});