GithubHelp home page GithubHelp logo

gulphtml-css-js's Introduction

HTML   CSS      Gulp  

Uso

El proyecto debe contener:

  1. Un archivo gulpfile.js donde se colocarán todas las configuraciones del proyecto.

1.- Instalaciones únicas

Sólo se instala una vez de manera global

npm install --global gulp-cli

2.- Instalaciones de cada proyecto

Estos comandos deben ejecutarse en cada proyecto que vaya a ser utilizado Gulp.

Si se tiene el Package.json solo ejecutar el:

npm i // npm install 

No se tiene el package.json

npm init
npm install --save-dev gulp

HTML

npm install --save gulp-htmlmin ##Minifica y limpia nuestro HTML

CSS

npm i --save-dev gulp-postcss cssnano autoprefixer
npm i --save-dev gulp-purgecss ##Limpiar el CSS que no se usa.

JavaScript

npm i --save-dev gulp-terser-js ##Minifica el codigo JS

Plugins de imágenes

npm i --save-dev [email protected] ##Aligerar imágenes.
npm i --save-dev gulp-cache ##Ayuda a procesar las imágenes en caché. 
npm i --save-dev gulp-webp ##Convierte imágenes a webp.
npm i --save-dev gulp-avif ##Convierte imágenes a Avif.

Plugins extra

npm i --save-dev gulp-plumber ##Evita que se detenga la ejecución al presentar errores.
npm i --save-dev gulp-concat ##Une todos nuestros archivos en uno solo.
npm i --save-dev gulp-cache-bust ##Limpia la caché
npm i --save-dev gulp-sourcemaps 

gulphtml-css-js's People

Contributors

elielm9 avatar

Watchers

 avatar

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.