gulp

Gulp fails with message: object expected

僤鯓⒐⒋嵵緔 提交于 2020-01-01 02:13:26
问题 I'm trying to use gulp on w7. gruntjs works .. node works ... If i start gulp without gulp file, it runs fine .. saying 'no gulpfile found' gulp -v gives: cli version 3.5.6, local version 3.5.6 installed it using: npm install -g gulp npm install --save-dev gulp If I use the following gulpfile: var gulp = require('gulp'); It results in error dialog: Windows Script Host Line 1 Char 1 Object Expected 800A138F Microsoft JScript runtime error I did try a more lengthy gulp file, but same error ...

laravel 5 - css file is not defined in asset manifest?

谁说我不能喝 提交于 2019-12-31 19:38:48
问题 I get an Error Message with laravel 5, which I don't understand. Next exception 'ErrorException' with message 'File build/css/all.css not defined in asset manifest. I haven't installed any asset pipeline or something. Just used elixir to compile, minify and version the scss-file to all.css and included it into the master view with <link rel="stylesheet" href="{{ elixir("css/all.css") }}"> What is this 'asset manifest' and how to fix this error?` 回答1: The question is of course what you want to

laravel 5 - css file is not defined in asset manifest?

蹲街弑〆低调 提交于 2019-12-31 19:38:15
问题 I get an Error Message with laravel 5, which I don't understand. Next exception 'ErrorException' with message 'File build/css/all.css not defined in asset manifest. I haven't installed any asset pipeline or something. Just used elixir to compile, minify and version the scss-file to all.css and included it into the master view with <link rel="stylesheet" href="{{ elixir("css/all.css") }}"> What is this 'asset manifest' and how to fix this error?` 回答1: The question is of course what you want to

External source maps for minified, transpiled ES6 code with webpack and gulp

谁说我不能喝 提交于 2019-12-31 17:55:14
问题 I'm writing ES6 code and transpile it to ES5 with Babel, then minify with Uglify. All run with webpack via gulp. I would like to use external source maps (to keep filesize as small as possible). The gulp task is pretty basic - all the funky stuff is in the webpack config: var gulp = require("gulp"); var webpack = require("gulp-webpack"); gulp.task("js:es6", function () { return gulp.src(path.join(__dirname, "PTH", "TO", "SRC", "index.js")) .pipe(webpack(require("./webpack.config.js"))) .pipe

Incremental gulp less build

戏子无情 提交于 2019-12-31 10:42:32
问题 In my office we are using gulp to build our less files. I wanted to improve the build task as it took over a second to build on a large project we recently worked on. The idea was to cache the files and only pass the one that changed. So I started with google and found incremental builds for javascript ang thought it would be easy to rewrite them for less. Here's the one I started with: https://github.com/gulpjs/gulp/blob/master/docs/recipes/incremental-builds-with-concatenate.md After a few

Incremental gulp less build

↘锁芯ラ 提交于 2019-12-31 10:42:05
问题 In my office we are using gulp to build our less files. I wanted to improve the build task as it took over a second to build on a large project we recently worked on. The idea was to cache the files and only pass the one that changed. So I started with google and found incremental builds for javascript ang thought it would be easy to rewrite them for less. Here's the one I started with: https://github.com/gulpjs/gulp/blob/master/docs/recipes/incremental-builds-with-concatenate.md After a few

Gulp - compile sass by folder, and modify parent directories

瘦欲@ 提交于 2019-12-31 06:58:46
问题 I'm new on gulpfile and i can't figure out how can I iterate through multiple folders using a single task My src folder structure folder1 assets style.scss folder2 assets style.scss folder3 subfolder1 assets style.scss subfolder2 assets style.scss Into dist folder i want something like this ( without 'assets' folder ) folder1 style.css folder2 style.css folder3 subfolder1 style.css subfolder2 style.css I have a few tasks that work properly but I want them to be a single task How can I achieve

Gulp - compile sass by folder, and modify parent directories

[亡魂溺海] 提交于 2019-12-31 06:58:05
问题 I'm new on gulpfile and i can't figure out how can I iterate through multiple folders using a single task My src folder structure folder1 assets style.scss folder2 assets style.scss folder3 subfolder1 assets style.scss subfolder2 assets style.scss Into dist folder i want something like this ( without 'assets' folder ) folder1 style.css folder2 style.css folder3 subfolder1 style.css subfolder2 style.css I have a few tasks that work properly but I want them to be a single task How can I achieve

Can't get gulp-rev-replace working with gulp-useref

大兔子大兔子 提交于 2019-12-31 04:12:07
问题 Continuing my previous question - but this time is the next step: getting file revisions to work. I'm working through johnpapa's course on automation with Gulp and seem to hit another wall (that's what you get when you try to adapt a concise course to a different file structure :P ). Basically, the issue is that I do get files named with a revision, but those names do not get into the end-result test.jsp , and I can't figure out why... This is the task (the minification is omitted for brevity

Glup V4.0.0 'gulp start' is not a function

一曲冷凌霜 提交于 2019-12-31 02:20:08
问题 I have this below gulpfile.js. When i run the app using 'gulp start' then it is showing start is not a function. Glup-cli version i'm using V4.0.0 const gulp = require('gulp'); const concat = require('gulp-concat'); const browserSync = require('browser-sync').create(); const scripts = require('./scripts'); const styles = require('./styles'); // Some pointless comments for our project. var devMode = false; gulp.task('css', function() { gulp.src(styles) .pipe(concat('main.css')) .pipe(gulp.dest