Giter Club home page Giter Club logo

gulp-starter-csstricks's Introduction

Gulp Starter for CSS Tricks Tutorial

This repo is a gulp starter for this CSS Tricks tutorial.

Remember to do run the npm install command after cloning this repo :)

gulp-starter-csstricks's People

Contributors

ermauliks avatar johnny-vikrant avatar tedgeving avatar travisbotello avatar vikrantnegi avatar zellwk avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

gulp-starter-csstricks's Issues

After npm install, running gulp returns this error.

`/gulpfile.js:92
runSequence(['sass', 'browserSync'] 'watch',
^

SyntaxError: missing ) after argument list
at exports.runInThisContext (vm.js:53:16)
at Module._compile (module.js:373:25)
at Object.Module._extensions..js (module.js:416:10)
at Module.load (module.js:343:32)
at Function.Module._load (module.js:300:12)
at Module.require (module.js:353:17)
at require (internal/module.js:12:17)
at Liftoff.handleArguments (/usr/local/lib/node_modules/gulp/bin/gulp.js:116:3)
at Liftoff. (/usr/local/lib/node_modules/gulp/node_modules/liftoff/index.js:192:16)
at module.exports (/usr/local/lib/node_modules/gulp/node_modules/flagged-respawn/index.js:17:3)`

building multiple html files and directories to /dist

I'd like to use this for a project, but I can't get it to deliver anything besides the root index.html to /dist.
I'll eventually have something like ...

/index.html
/foo/index.html
/foo/subfoo1/index.html
/foo/subfoo2/index.html
/foo/subfoo2/index.html
/foo2/index.html

as the file directory for a super dumb static HTML website I have to build.

But your gulp file doesn't read all of that.
Can you help with a fix?

Thanks!

del.sync(...).then is not a function

When I run gulp clean it gives me the following error:

TypeError: del.sync(...).then is not a function at Gulp.<anonymous> (F:\UEM\dev\ureckon19-website - Copy\gulpfile.js:85:27) at module.exports (F:\UEM\dev\ureckon19-website - Copy\node_modules\orchestrator\lib\runTask.js:34:7) at Gulp.Orchestrator._runTask (F:\UEM\dev\ureckon19-website - Copy\node_modules\orchestrator\index.js:273:3) at Gulp.Orchestrator._runStep (F:\UEM\dev\ureckon19-website - Copy\node_modules\orchestrator\index.js:214:10) at Gulp.Orchestrator.start (F:\UEM\dev\ureckon19-website - Copy\node_modules\orchestrator\index.js:134:8) at C:\Users\farhana\AppData\Roaming\npm\node_modules\gulp\bin\gulp.js:129:20 at process._tickCallback (internal/process/next_tick.js:61:11) at Function.Module.runMain (internal/modules/cjs/loader.js:744:11) at startup (internal/bootstrap/node.js:285:19) at bootstrapNodeJSCore (internal/bootstrap/node.js:739:3)

Although it returns an error yet the dist folder is deleted.

questions

Hello,

This repo is really awesome.
Just a few questions :

  • Gulp seems to not compress the images at all, as the size is exactly the same in the dist image folder.

  • when uploading on firebase I have a Warning: advanced compression encodings unavailable without ES6/C++11. Falling back to gzip. What should I add in gulp ?

Thanks

useref issue?

Great article at ccs-tricks, thank you!

I'm running into a problem when running gulp useref with the following code:

gulp.task('useref', function() {
  var assets = useref.assets();

  return gulp.src('app/*.html')
    .pipe(assets)
    .pipe(assets.restore())
    .pipe(useref())
    .pipe(gulp.dest('dist'));
});

I get the following error:
Using gulpfile ~/Documents/project/gulpfile.js Starting 'useref'... 'useref' errored after 224 μs TypeError: useref.assets is not a function

Any help/advice would be very welcome!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.