gulp tutorial

Want to know gulp tutorial? we have a huge selection of gulp tutorial information on alibabacloud.com

Webpack and gulp, grunt difference

Webpack and Gulp, grunt nothing comparable, it can be seen as a module Packer, through the analysis of your project structure, to find the JS module and other browsers can not directly run the expansion of the language (Scss,typescript), It is converted and packaged into the appropriate format for use by the browser. Gulp/grunt is a tool that optimizes the development process of the front-end, while Webpack

Gulp Auto Refresh Plugin

Gulp automatically refresh the plug-in a lot, but feel the best use or Browser-sync plugin. If you do not want to use the command line, you can also use the Browser-sync interface toolInstall the Browser-sync plugin first:NPM Install Browser-sync--save-devIssues that you may experience installing the Browser-sync plugin http://www.cnblogs.com/ayseeing/p/4201202.htmlBrowser-sync APIThe Gulpfile.js file code is as follows:The dependency module first int

Use of ejs plug-in for Gulp frontend Automation

Use of ejs plug-in for Gulp frontend Automation Gulpfile. js Configuration Gulp. task ('ejs', function () {gulp. src ([./app/**/*. html ,! App/html/common /**/*. html]). pipe (plugins. ejs ({}, {ext: '.html '})). pipe (gulp. dest (. /dist /)). pipe (plugins. notify ({message: ejs task complete }))}); Src Sou

Gulp, Webpack Study notes

Preface: These two have learned the basic use of gulp and webpack every day, in fact, for these tools, understand the basic usage, familiar with some common configuration and methods is enough for daily use. More complex to wait until the need to check the relevant documents.Gulp and Webpack have similar features, such as compressing and merging files, but should be considered as two types of tools.The main function of

Gulp-rev-append static resource add suffix, clean cache

Https://github.com/bustardcelly/gulp-rev-appendInstalling pluginsInstall gulp-rev-append--save-devGulpfile.jsvar rev = require ("Gulp-rev-append"); // Introduce plugin gulp.task ("rev",function() {/// task gulp.src (' f:/test/myproject/**/*. HTML '). Pipe (rev ()) . Pipe (Gulp.dest ('./dist '));});Htmltype= "Text/javascript" src= "Js/[email protected] @

Gulp is not an internal or external command or webpack is not an internal or external command

Gulp installation is also normal, but is the time to view gulp-v error, Reason: Missing system variable path or path variable wrong Hint: This system variable path, directly append is good (multiple variable values with semicolons; separate), do not delete the existing system variable pathHow do I find this variable? There are three ways to find, maybe there are other ways to find, you choose a preferred wa

Remember those things in the Gulp configuration process

Gulp after the global installation and then specify the directory or you want to re-set again Adding--save-dev saves a lot of trouble when installing the Gulp module Livereload do not know why, has not succeeded, just change browser-sync, easy to fly, originally to Livereload also special under a xampp when the server, the results Browser-sync can be directly used, but I have installed to continue to

Angularjs uses gulp-uglify to compress and then execute an error,

Angularjs uses gulp-uglify to compress and then execute an error, The cause of the problem is that after compression, the variable becomes e, s, t, and so on. The method for dependency injection does not use braces for injection, but is directly used in function parameters, as a result, the modules to be injected cannot be identified after compression. For example: Var module = angular. module ('homeapp', ['ui. router ']); module. config (function (

"nodejs+gulp+webpack Basic combat" Course notes (vi)--additional Lessons

id, the need to verify the text basket to add Code.2. Write in Login.js as a script snippetRequire ("./css/user.css"); $.validator.setdefaults ({ function() { alert ("validate Pass!") ); }}); $ (document). Ready (function() { $ ("#txtUserLogin"). forminputletter ({ the number of characters showid: "lenmsg"// displays the ID of the remaining character text label }); $ ("#userfrm"). validate ();}); Ok,node in webpack, look, can achieve our expected login verifi

Gulp+vue+webpack. NET core Web project development

Prepare before use Installing Nodejs Npm cnpm Global Installation Webpack PS:CNPM and NPM differences, please Baidu1.packages.json configuration file, if this file is not in the project, run NPM init (PS:CNPM init is also available){ "name":"Tcbase.nugetserver.portal", "version":"1.0.0", "Description":"", "Main":"Index.js", "Scripts": { "Test":"echo \ "Error:no test specified\" exit 1" }, "author":"", "License":"ISC", "devdependencies": { "Css-loader":"^

(i) Building projects with Less+gulp+requirejs (learn less)

Conclusion of the project:Company website refactoring, the whole station need to rewrite, and finally have the opportunity to contact Less,gulp and Requirejs, because the previous job is to write a few activity pages, and no opportunity to use these tools, nonsense not to say, first look at the completion of the project directory:is less file directory, according to the function is very fine, there is head, bottom, popup box, button, color ..... And s

What is the relationship between Gulp, Requirejs and Webpack?

What is the relationship between Gulp, Requirejs and Webpack? AMD and CMD are modular specifications respectively Requirejs and SEAJS are respectively a scheme for implementing the specification. On-Line compiling module scheme: the introduction of Requirejs in the project, is equivalent to loading an AMD interpreter, so that in the code can use define, exports, module of these methods, to achieve modularity Browserify/webpa

Can javascript-gulp output the tpl of The smarty template as an html plug-in?

Can gulp output the tpl of The smarty template as an html plug-in? Development Environment: A new project needs to be developed now, and the development process is written at the front end. the backend of HTML is changed to. tpl is synchronously rendered using the smarty template engine. Problem: Many static pages can be used to output the tpl of The smarty template into html ins? Development Environment:A new module is required for an old project. th

Usage of front-end build tools-grunt, Gulp, Browserify, Webpack

With the rapid development of front-end projects, more and more projects, more and more documents, front-end engineering tools are more and more. Here are four of the most popular build tools--grunt, Gulp, Browserify, WebpackAll build tools are based on Nodejs and NPM, so you need to install node using any of the following toolsFirst, Grunt1. Two files required:Gruntfile.js--grunt Execution Task File: Describes the tasks that the project will perform.

Laravel Elixir Run Glup command: Error in plugin ' gulp-notify '

Laravel Elixir Run the Glup command with an error message: [20:24:02] Gulp-notify: [Error in notifier] Error in plugin ' gulp-notify 'Message:notify-send must is installed on the system. Although it does not affect the final release, it solves the problem. Glup_notify_send The way to resolve this error is to install the Libnotify module, under CentOS: RPM-IVH ftp://195.220.108.108/linux/centos/7.2.1511

Gulp-rev also discusses the way JS and CSS files are written in a Rev-manifest.json file

Reference:https://segmentfault.com/q/1010000002876613Https://github.com/sindresorhus/gulp-revThe test found that the main practice on the official web is:Add the following parameters:{ ' build/assets ', True }Where the base is to store the last generated Rev-manifest.json file, and then merge to be flattened into, and then output to the base directory, you can implement JS and CSS files in a Rev-manifest.json file.Then I advocated this writing,

Gulp study Note 1-definition

1, Gulp is the front-end development process of the code to build the automation tools, it can be provided by the various plug-ins to achieve such as: Pre-compilation (sassless), compression, merging, picture Sprite and other front-end repetitive operations2, based on Nodejs, to JS writing plug-ins, relying on NPM online installation, through the configuration file gulpfile.js to introduce plug-ins and orchestration Automation rules.3, compared to Bai

Front End automation Artifact Gulp usage record

1, the installation of compressed image plug-in, due to network reasons, dead and alive installation is unsuccessful. Because the imagemin itself contains a lot of plug-ins, the installation of the time stuck, it is depressed. If you want to compress PNG images, install the imagemin-pngquant compression plug-in separately. NPM Install Imagemin-pngquant2, the use of minify plug-in compression JS problems, the elimination of. min.js file, Mom, min.js file after the JS files are not compressed, but

Gulp Installation Bootstrap

","Bootstrap": ". /lib/bootstrap/dist/js/bootstrap.min ","Demo1": "Demo1"}});Require ([' jquery ', ' Bootstrap ', ' demo1 '), function ($,BOOTSTRAP,DEMO1) {Console.log (Demo1.web.add (2));Console.log (Demo1.add (2,3));Console.log (Demo1.web.ride (2,3));});------------------------------------AMD Requirejs (Load all dependencies first)CMD Seajs (deferred loading)AMD examplesRequire ([' jquery ', ' Bootstrap ', ' demo1 '), function ($,BOOTSTRAP,DEMO1) {Console.log (Demo1.web.add (2));Console.log (

Gulp Packing Compression JS code

This is a small demo that implements the following functions:1. In the JS code to pack a lot of JS files, we need to control some individual JS pieces must be in front. Here is a simple implementation.2. The implementation is merged into a JS file.3. The implementation is compressed into one line, that is, generate *.min.js.First, look at the directory structureWherein Main.js simulates the most important one JS file, on the page should first need to load the JS. File.We put the files that do no

Total Pages: 15 1 .... 11 12 13 14 15 Go to: Go

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.