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

vue project preparation and skeleton construction

First, ensure that these conditions are met:     Then install vue globally cnpm install -g vue-cli After installation, you can use vue -h to view the help documents of vue     vue -list view the templates supported by vue What we will use next is webback     vue init webpack mall The project name must be entered in English. I enter mal here ...

Added by phphead on Fri, 03 Apr 2020 18:20:20 +0300

vue custom panel instruction

vue custom panel instruction In the development of the project, many panels with mask layer are used. These panels are rigid, fixed in size, fixed in position, unable to minimize and so on. I would like to use a vue custom instruction to solve these problems. For any panel, just add a v-panel instruction to the panel e ...

Added by mudi on Thu, 02 Apr 2020 13:40:58 +0300

Are you hungry? Learning (1) basic introduction

Hungry? Study (1) Project preparation Project construction Install vue scaffold npm install -g vue-cli Project initialization Vue init webpack < project name > Others omitted: webpack configuration needs to be recorded separately for learning stylus Learn to use stylus in this project Install stylus and in ...

Added by homerjsimpson on Mon, 30 Mar 2020 22:14:09 +0300

What kinds of webpack plug-ins do you use?

​ background Recently, I've been looking at something related to weback plug-ins. I don't know a lot about weback, but these things are necessary for senior programmers to master. Try to learn. introduce Official website: https://www.webbackjs.com/concepts/plugins/ There are so many things on the ...

Added by skalar on Sun, 15 Mar 2020 11:03:26 +0200