gulp

    1热度

    1回答

    我使用autoprefixer与吞噬添加浏览器呈现前缀属性。但似乎像autoprefixer忽略所有的网格属性。 gulp.task('postcss',function() { console.log("Running postcss task"); var plugins = [autoprefixer({browsers: "last 5 versions"

    0热度

    1回答

    我用一口任务注入我的JavaScript文件: gulp.task('index', function() { var target = gulp.src('./public/index.html'); var sources = gulp.src(config.appjs.concat(config.appcss), {read: false}); return target.pipe(

    1热度

    1回答

    我recived,要我说,一饮而尽,gitinfo没有在文件 module.js:491 throw err; ^ Error: Cannot find module 'gulp-gitinfo' at Function.Module._resolveFilename (module.js:489:15) at Function.Module._load (module.js:439:25) at

    1热度

    1回答

    我尝试使用下面的命令来安装吞掉4: sudo npm install git+https://[email protected]/gulpjs/gulp.git#4.0 --save-dev 但要拒绝权限错误: npm ERR! code 1 npm ERR! Command failed: /usr/bin/git clone --depth=1 -q -b 4.0 https://

    0热度

    2回答

    我在我的角JS项目中使用es6语法,但它运行时抛出错误gulp build,搜索github和所以,但有人说这是错误的,因为吞咽uglify同时有人说这是巴贝尔问题和其他说ng-annonate问题。 的ubuntu 14.04 节点-v:8.4.0 NPM -v:5.3.0 巴贝尔--version:6.26.0(巴别 - 核6.26.0) package.json { "name":

    0热度

    1回答

    我想配置浏览器与gulp同步,我想观看我的scss文件并将它们编译并保存在名为dist的文件夹中,并且在更改时我也想重新加载浏览器这个过程就完成了。 到目前为止,我成功地在一个新的窗口中观看,编译和加载结果,但是当scss文件进行了进一步更改时,我无法刷新浏览器窗口。我在这里做了什么错误?我也想知道这是否是正确的做法。 这里是我的gulpfile.js 'use strict'; var

    1热度

    1回答

    我正在用一口自耕农,我想用这个混入打印用户的GitHub的名字:http://yeoman.io/generator/actions_user.html#.git.name 简单地增加var username = git.name();如何使用这个混入等混入的自耕农不起作用 ?我是否需要或包含除了yeoman本身之外的任何index.js文件?

    2热度

    2回答

    我有一个运行Browsersync的Jekyll项目,但我遇到了一个小问题,要让我的吞噬任务按预期方式运行。这里是我的gulpfile的简化版本: const gulp = require('gulp'); const browserSync = require('browser-sync').create(); gulp.task('jekyll',() => { return

    1热度

    1回答

    我写的吞噬任务在我的主要任务中破坏了runSequence。它有其他任务之间的运行,像这样: runSequence( ... ':build:prod:staticIndex', ':build:prod:typeDocToMD', // << this is my task ':build:prod:staticDocumentation', ...etc ,并在其后的任务也永远不

    0热度

    1回答

    我正在尝试设置一些Gulp任务。我想连接一些JS文件,缩小它们以创建1个JS文件,但是我希望每次在原始JS文件中进行更改时都会完成此操作,但我似乎无法正确运行“监视”任务 这是我Gulpfile.js gulp.task('minify', ['watch', 'scripts'], function(){ gulp.src('themes/corp-fluid/js/dist/**/*