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/**/*