Wechat opens static page to share with friends

First of all, we need to add a share button in the upper right corner of the original homepage, and then we need to click it to pop up wechat's own function of sharing to friends. At first glance, it seems not difficult. There was no wechat related development experience before, but it took three days to do well. Let's start w ...

Posted by jonstu on Tue, 07 Jan 2020 05:00:32 +0100

coverage es6 coverage solution

This article was organized in 2017 to solve the problems encountered in ES6 replacement in gridmanager version 2.3.0. The text is as follows After replacement, it was found that the original test coverage decreased from 72% to 24%. Through the local test of coverage html, it is found that the code used to overwrite the target file is the conver ...

Posted by Thethug on Thu, 12 Dec 2019 17:28:32 +0100

Uncover Vue - vue-cli3 comprehensive configuration

vue-cli3-config Create project Configure environment variables    select different environments by adding -- mode xxx to the scripts configuration item in package.json Create. Env,. Env. Production,. Env.analyz and other files in the root directory of the project              ...

Posted by Mistah Roth on Tue, 10 Dec 2019 23:22:25 +0100

Using jQuery and Bootstrap in Vue CLI3.0

Using jQuery and Bootstrap in Vue is not particularly in line with Vue's native writing method, but sometimes it has to be used, so put my introduction settings for your reference. To introduce jQuery and Bootstrap into Vue cli 2.0, you need to set many configuration items. There are many methods on the Internet, which will not be repeated here ...

Posted by cbrknight on Tue, 03 Dec 2019 11:45:52 +0100

Overview of common build optimization for webpack s

brief introduction Read "Shallow web pack" to summarize common web pack construction optimization strategies, you can improve the speed of project construction by the following means More precise loader rules Write the loader rules clearly Just let the files that need to be processed go into the loader process as follows rules: [{ ...

Posted by utpal on Wed, 20 Nov 2019 22:08:25 +0100

Front End Performance Optimization - Offline Cache for Static File Clients _20191110

Front End Performance Optimization - Offline Caching for Static File Clients 1. Preface Last article shared how to optimize your project to the extreme during the webpack packaging phase.Article Link: Optimize webpack packaging to the extreme _20180619 Front-end optimization is endless. This article focuses on my exploration and experience summ ...

Posted by creekriot on Sun, 10 Nov 2019 08:06:14 +0100

Reasons for slow loading of vue for the first time / slow loading after refresh and Solutions

Recently, a problem was found in the project. The loading speed of the page is very slow after each refresh, about 20s. In the development environment, it is very smooth, almost imperceptible. This article refers to the optimization of various schemes of Wangshan. 1. Close the map file generated during packaging In the config/index.js file, it ...

Posted by ragtek on Wed, 06 Nov 2019 03:31:21 +0100

Build your own js tool library from scratch typescript+rollup+karma+mocha+coverage

Preface With the increase of the company's product lines, there are more and more development and maintenance projects. In the process of business development, it will be found that cookie processing, array processing, throttling and anti shake functions and other tool functions are often used in many projects. In order to avoid the low operati ...

Posted by akrocks_extreme on Wed, 30 Oct 2019 05:09:25 +0100

vue2.x scaffolding

Use of vue2.x scaffold Vue init webpack simple filename download the framework src folder directory is the file we want to operate app.vue file: all components are centralized in this file ep:import component name from 'component address' reference component export default { name: 'app', data () { ret ...

Posted by primate on Fri, 18 Oct 2019 23:46:39 +0200

36 Skills to Know in Vue Development [Nearly 1W Words]

Preface Re-Alpha version of Vue 3.x. There should be Alpha, Beta and other versions in the future. It is expected that the official version of 3.0 will not be released until at least the first quarter of 2020.So we should take advantage of the fact that we haven't yet come out to lay a good foundation for Vue2.x.The basic usage of vue is easy t ...

Posted by robert.access on Wed, 09 Oct 2019 17:26:19 +0200