webpack: from introduction to real project configuration (2)
How to use webpack in a project
Simple babel and webpack have been configured in the project to run npm directly
run start
At this point, you will find that the bundle.js is so large that it is certainly unacceptable, so the main purpose of the next chapter is to split individual files.
Optimize projects for multiple files.
Separation ...
Posted by aveach on Fri, 24 May 2019 02:00:52 +0200
Pull-down refresh component on listloading mobile end
listloading.js
Listloading is a pull-up and pull-down loading of more components on the mobile side. It mainly depends on the components developed on the basis of iscroll.js v5.1.2. The base library can use jquery.js or zepto.js to operate DOM nodes. At present, I use zepto.js as the base library to operate dom, which exists in the form of ...
Posted by jim_de_bo on Thu, 23 May 2019 01:01:41 +0200
Webpack from entry to abandonment
Preface
Tips
If you have used webpack and have been using webpack 1, please refer to Migration from v1 to v2 (v2
There is little difference between v3 and v3) Understand the content of version changes properly, and then read this article selectively.
First of all, this article is based on the latest. webpack Version (i.e. v3.4.1) w ...
Posted by brucemalti on Mon, 20 May 2019 03:47:59 +0200
Vue Day One, Day Two
I. What is Vue.js
Vue.js: A progressive framework for building user interfaces. The core library of Vue focuses only on the view layer.
Installation: Vue.js provides an official command-line tool that can be used to quickly build large single-page applications. The tool provides out-of-the-box configuration of building tools, ...
Posted by Negligence on Sun, 19 May 2019 00:55:34 +0200
Installation and Configuration of Babel
Babel is actually a platform for compiling JavaScript, which compiles code to help you achieve the following goals:
Let you use the latest JavaScript code (ES6, ES7...) It doesn't matter whether the new standard is fully supported by the browsers currently in use.
Next, learn how to install Babel
Babel is actually ...
Posted by watthehell on Sat, 18 May 2019 15:52:17 +0200
Webpack 4.0 introductory learning notes
Initialization project
Create project
mkdir webpack4-democd webpack4-demo
npm init -y
install
npm install webpack --save-dev
Install the specified version
npm install --save-dev webpack@<version>
webpack 4 + version, you also need to install webpack-cli
npm install webpack-cli --save-dev
It is recommended to install webpack and webpack ...
Posted by zonkd on Tue, 14 May 2019 13:10:28 +0200
Node.js-Ali Egg's Multiprocess Model and Interprocess Communication
Preface
Recently, Egg has been used as a low-level framework development project, curious about the management implementation of its multi-process model, so I learned something and recorded it incidentally. If there are any mistakes in the article, please spray it lightly.
Why multi-process is needed
With the development of science and technolo ...
Posted by greenday on Sun, 12 May 2019 12:42:14 +0200
Elastic search development environment
Build ES development environment.Installation instructions
Environment: centos7
Java : java8
elasticsearch-6.5.4
Download address
$ cd ~
$ cd download
$ wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-6.5.4.tar.gz
Pre-installation Conditions
Note: The article has been configured by default version ...
Posted by emma57573 on Sat, 11 May 2019 21:31:57 +0200
[VUE] - Recommendation preparation for mobile H5 page development using VUE
Before using Vue to develop mobile pages, we need to do some pre-work to ensure that what users see when they visit the pages does not have different effects because of the different devices. For example, a page is displayed normally on the iPhone 7 plus, and then switch to the iPhone 5 because a small part of the content of th ...
Posted by xiosen on Sat, 11 May 2019 19:12:06 +0200
Wechat applet-introducing zanui-weapp
To introduce zanui-weapp, the following software must be installed: Node.js, Git, Bower
1:Node.Js Installation
First download Node.js, website https://nodejs.org/en/ The stable version is recommended on the left and the latest version on the right.
Node.js installation, running the downloaded. msi file, the next s ...
Posted by Syrehn on Sat, 11 May 2019 00:59:45 +0200