It takes too long to load the home page project for the first time, and the packaged file is too large
Problem background: 1 It takes 2min to load the page for the first time. If it cannot be opened for half a day, a white screen will appear. After optimization, it will become 30s
2. The file after build is too large, such as a main JS file is 7.9M before optimization and 1.5 ...
Added by TobyRT on Fri, 21 Jan 2022 01:48:45 +0200
Why can pnpm be used to build a useful monorepo (more efficient than yarn/lerna) at the speed of light
preface
First of all, the combination of yarn + lerna is now the general scheme of monorepo, and it is also the most functional and popular scheme. It is absolutely correct to use this scheme.
However, there is a certain threshold for it to get started. Compared with pnpm, which has its own workspace, it is not comparable in efficiency.
prob ...
Added by nick1 on Thu, 20 Jan 2022 18:35:04 +0200
webpack5 packages a TS library and publishes it to npm one-stop practical tutorial (with template code)
preface
Today's front-end wheels are bound to run away from packaging tools such as webpack and rollup. Webpack 5 has been out for a long time. Let's try it.
The article will create a TS library from scratch and upload it to npm. The dimensions are in the order of operation steps.
Create a new project package jsonInstall webpack a ...
Added by e39m5 on Wed, 19 Jan 2022 16:03:55 +0200
vue learning notes
Vue.js learning notes
First stop
Initial use
js
// Let / const how to create variables
const app = new Vue({
el:'#app ', / / used to mount elements to be managed
data:{ // Define data
message: 'How do you do!',
name: 'hello How do you do'
},
// Method area, in which methods can be called in HTML
meth ...
Added by mobtex on Mon, 17 Jan 2022 22:26:20 +0200
Flowable actual combat BPMN2 0 task
tasks are the most important part of the process. Flowable provides a variety of task types to meet actual needs. common task types are:User tasksJava Service taskScript taskBusiness rule taskExecution listenerTask listenerMultiple instances the task types of integration extension include:Manual taskJava receive taskShell tas ...
Added by AcousticJames on Sun, 16 Jan 2022 11:07:52 +0200
Flowable actual combat integration JPA
as mentioned above, all the form data of Flowable are saved in one table (act_hi_variables). With the passage of time, there are more and more data in the table. In addition, the data structure is not optimized, and the query efficiency will be lower and lower. in Flowable, the above problems can be solved by integrating JPA. JPA s ...
Added by kjtocool on Thu, 13 Jan 2022 18:25:08 +0200
Monerpo Workflow Foundation changesets open and advanced (Speeches)
background
Changesets is an atlas product of jira company, which has been transferred to the new organization of changesets for special maintenance.
repo address: changesets/changesets
Who's using it?
Presupposition theory
Talk about workflow
workflow consistency problem
How to reach an agreed workflow?
Within the company: pull ...
Added by irkevin on Sun, 09 Jan 2022 03:34:54 +0200
Summary of some problems encountered this week
Question 1: how to reference private librariesAt first, I thought that since node_modules are used to store the installed packages, so put @ yunzhi directly into the node_modules.After trying, it is found that although functions in the library can be used, when functions are directly referenced, the system does not automatically reference @yunz ...
Added by PlasmaDragon on Wed, 05 Jan 2022 16:58:52 +0200
Scaffold development - preparation phase
Basic principle of scaffold
Click to view the overview of scaffold series articles [updating]
Personal website: www.dengzhanyong.com
Pay attention to the official account. Front end Xiaoyuan ], don't miss every article
Initialize project
1. Create project file
mkdir steamed-cli
cd steamed-cli
2. Use lerna to initialize the projec ...
Added by blink359 on Mon, 03 Jan 2022 14:52:26 +0200
Vue project creation and usage
VUE project creation
Vue project creation method I
Install node js
Download from the official website: https://nodejs.org/en/
View node js version: node -v
View npm version: npm -v
npm switches to Taobao image mode
npm config set registry https://registry.npm.taobao.org
Check whether the image configuration is effective: npm config list ...
Added by thebusinesslad on Tue, 28 Dec 2021 19:42:09 +0200