Web composites practice report, native component development

preface    I believe that as a front-end developer, no matter using vue, react or Australian, you will not be unfamiliar with component and component-based development, and even have a lot of Taoism. But when it comes to native component development, many friends may scratch their heads. Is there any other operation? It's like people ...

Added by troybtj on Sun, 31 Oct 2021 09:34:10 +0200

webpack installation configuration

1, Introduction: 1. Module packaging tool for JS application 2, webpack installation 1. Environment: node environment 2. npm install webpack -g Description: npm install command; Webpack is the tool name, and the version can be specified, such as: webpack@5.58.3 ; - g means global installation. If you don't want global installation and onl ...

Added by baby on Sun, 24 Oct 2021 09:45:45 +0300

Calculated properties and listeners in Vue

1, v-for 1. Update monitoring In general, changes in data will lead to v-for update, but in some cases, such as array method filter, it will return a new array, or directly change the value of the array in a literal way, which will not lead to v-for update. In such cases, reassignment or this.$set() or Vue.set() methods can be used // v-for ...

Added by wazza on Wed, 06 Oct 2021 01:22:38 +0300

webpack -- five core concepts, basic usage and packaging

webpack webpack is a front-end resource component tool, a static module bundler. Compile syntax that the browser does not recognize into syntax that the browser can recognize From the perspective of webpack, many resource files (js/json/css/img/less) in the front end will be processed as modules. It will conduct static analysis according to t ...

Added by troublemaker on Tue, 21 Sep 2021 00:40:13 +0300

Random random number function in stylus

Write in front Like Sass, Stylus is an excellent CSS precompiled voice: expressive, dynamic and powerful CSS; When using Stylus to write the following effect, I need to use random numbers. However, when I read Stylus's documents, I did not find any available functions. After reading the new year's day of Stylus, I found that it supp ...

Added by Adam W on Mon, 25 May 2020 17:45:04 +0300

openlayers6 heat map (download with source code)

preface I have written a map heat map article in openlayers 4 before, but because it is written by encapsulating a layer of js code, many beginners seem to be a bit laborious, so this article rewrites a map heat map article, directly based on the latest version of openlayers 6, in the form of pure html + js + css, without any encapsulation. ...

Added by richiec on Mon, 11 May 2020 09:04:37 +0300

From Vue cli to package Publishing

Structure and description of Vue cli initial directory ├── README.md ├├ -- build the code of compiling task │ ├── build.js │ ├── check-versions.js │ ├── dev-client.js │ ├── dev-server.js │ ├── utils.js │ ├── webpack.base.conf.js │ ├── webpack.dev.conf.js │ └── webpack.prod.conf.js ├ - configuration file of config webpack │ ...

Added by Gabriel_Haukness on Mon, 04 May 2020 06:37:28 +0300

. 25 - Analysis of event flow compilation of webback source code (3)

Run the next batch of plugin s in this section. compiler.apply( new EnsureChunkConditionsPlugin(), new RemoveParentModulesPlugin(), new RemoveEmptyChunksPlugin(), new MergeDuplicateChunksPlugin(), new FlagIncludedChunksPlugin(), new OccurrenceOrderPlugin(true), new FlagDependencyExportsPlugin(), new FlagDependen ...

Added by BETA on Sat, 02 May 2020 21:03:17 +0300

Flow static type checking development environment construction

Flow It is a static type checking tool for JavaScript produced by Facebook. It can help to catch common errors in JavaScript development without modifying the original code, such as static type conversion, null value reference and so on. At the same time, Flow adds a syntax identifier of static type to JavaScript, so that developers can define ...

Added by MaxBodine on Sat, 18 Apr 2020 12:33:56 +0300

Using workbox to implement PWA in webpack

Using workbox to implement PWA in webpack Explain Important document version "workbox-webpack-plugin": "^3.0.0" "webpack": "^3.11.0" Webpack provides workbox plug-in workbox webpack plugin Used in webpack Use in production version configuration 1. Import in the entry html template <!DOCTYPE html& ...

Added by Telemachus on Sat, 04 Apr 2020 11:07:19 +0300