Turn off the crazy ESlint syntax detection configuration method

Actually, I am not against these grammar tests, but like many anti personal wishes, I really have to talk about it, such as the default eslint rule created by vue-cli scaffolding: Semicolon cannot be added at the end of code; Cannot have multiple blank lines in code The tab key cannot be used. It must be replaced ...

Posted on Sun, 17 Nov 2019 15:39:01 -0500 by Aérolithe

ES6 I use

let and const The project built by webpack directly discards VaR and directly uses let instead of var let instead of var in for loop After variable declaration, it will not change. Please use const Destructuring assignment Concept: first deconstruct and then assign, first find out the data you need from a pile of data, and then assign the dat ...

Posted on Sun, 17 Nov 2019 13:52:48 -0500 by CincoPistolero

webpack devServer cannot refresh browser automatically, but it can compile automatically

In the past few days, I found a problem in learning how to use webpack. Please record itQuestion:1. The web pack devserver cannot refresh the browser automatically, but it can compile automatically2. Unable to load js file (js can be loaded normally without devServer) The configuration of webpack.config.js is as follows: var path = require('pat ...

Posted on Wed, 13 Nov 2019 14:43:58 -0500 by gojakie

Web pack source code analysis

Source code analysis of webpack First of all, let's go to github and make a copy of the source code of clone, which is the 4.30 version of webpack. git clone https://github.com/webpack/webpack.git start First of all, the initial step of looking at a source code is to open package.json to find its entry file"mai ...

Posted on Sat, 09 Nov 2019 10:06:10 -0500 by pauper_i

vue ssr server rendering for beginners

vue ssr server rendering >Learning ssr in the beginning At the beginning, there are many doubts about rendering on the vue server. Most of our front-end is a semi monk. The first step is to separate the front and back ends. We don't know about the server. We don't speak java or php language, and we don't even understand the node service. It' ...

Posted on Sat, 09 Nov 2019 05:02:28 -0500 by dsdsdsdsd

vue+typescript build project related configuration

Step 1: integrate ivew cnpm install iview --save 1 Execute this command to install the iview component library Open the main.ts file and add the following code: //Introducing the iview component import iView from 'iview'; import 'iview/dist/styles/i ...

Posted on Fri, 08 Nov 2019 17:11:51 -0500 by jimmyhumbled

How to implement modular loading of Web pack

The module specifications supported by webpack are AMD ,CommonJS,ES2015 import  Such norms. No matter what kind of specification, it can be roughly divided into synchronous loading and asynchronous loading. This article will show you how webback implements module management and loading. Load synchronously as follows: import a from './a'; conso ...

Posted on Wed, 06 Nov 2019 13:14:17 -0500 by tazz

JS writes different functions after hovering for a few seconds

Hello, I'm vortex nail. Preface: In recent weeks, I have been defending my own Open source player component based on React , thinking that the functions are almost the same, but ignoring a very important function of the player: when hovering over the video playing interface, the mouse will disappear after a certain period of time, and the contr ...

Posted on Sat, 02 Nov 2019 07:09:12 -0400 by omegared

(23) playing chicken teaches you Vue.js

Example: image.png image.png Template grammar The introduction of Vue router, vuex and mode method Package deployment: image.png npm run build image.png image.png image.png At present, Webpack is more and more widely used in job hunting and work. To learn to understand, learning Webpack is not e ...

Posted on Fri, 01 Nov 2019 22:05:51 -0400 by Brusca

Learn vuesser according to the official website

according to Official website example Implementing vue ssr step by step The title used corresponds to the title of the official website Basic Usage Create a new folder ssrcd ssrnpm init -yNPM install Vue Vue server render Express -- save or yarn add Vue Vue server render Express -- save New file s ...

Posted on Thu, 31 Oct 2019 19:00:51 -0400 by xt3mp0r~