Tag:Entrance

  • Part2 – module 2

    Time:2021-6-21

    1、 Simple questions 1. What are the main steps in the construction process of webpack? If you can, please describe the whole process of webpack packaging in detail. Main links:(1) Read the contents of the entry file(2) Analyze the entry file, recursively read the file content that the module depends on, and generate ast syntax […]

  • How to load an unmanaged DLL embedded in a resource

    Time:2021-6-20

    How to load unmanaged DLL We always encounter the need to load unmanaged DLLs other than Win32. One of the recommended ways is to embed those unmanaged DLLs into resources, decompress and load them at the entrance. Let me see how to implement it first. First, we are ready for the demo. The new console […]

  • Four common methods of promise.

    Time:2021-6-13

    preface I saw that many people used it in the projectPromiseSuch as Bluebird, Q, jQuery. Deffered, etcpolyfill promise Way, when using the long document, really tired feel do not love.With the development of Es5, node0.12Version is already supportedpromiseOn the client side, most browsers also support itPromiseIf you want to be compatible with lower version browsers, […]

  • Introduction to Java

    Time:2021-6-12

    Java past and present Java was first developed by James Gosling (commander Gao, known as the father of Java) of Sun company (which has been acquired by Oracle) in the early 1990s. It was originally named oak. Its goal is to target at the embedded applications of small household appliances. As a result, the market […]

  • Electronic development from scratch – project building

    Time:2021-6-8

    In this paper, based on thevue cliProvidedvue-cli-plugin-electron-builderScaffold construction. The advantages and disadvantages of electron have been analyzed in various ways. I won’t go into more details here. If you are a front-end developer and want to convert existing pages into desktop software, and have versions of win, MAC and Linux, then electron is a good […]

  • Practical react scaffold, simple react scaffold

    Time:2021-5-11

    Practical react scaffolding, no redundant documents, User defined react scaffold based on webpack, Project structure modularization, componentization, SSR, react server rendering, React + webpack + router + Redux + SSR JS / CSS extraction and compression Multi process packaging, routing, lazy loading, etc Multi page portal configuration, etc The source code address is as follows: […]

  • The principle of Mini Pack

    Time:2021-5-9

    The article first appeared on my bloghttps://github.com/mcuking/bl… Please refer to the source codehttps://github.com/mcuking/bl… This paper mainly describes how to implement a front-end application packer similar to webpack step by step. The essence of webpack In essence, webpack is a static module bundler for modern JavaScript applications. When webpack processes an application, it recursively builds a […]

  • Proxy mode: lazy loading of third-party libraries such as ecarts in Vue

    Time:2021-5-8

    1. Basic knowledge (1) Agency model Let’s start with a simple example. As shown in the code //Note: if you are running the program in node environment, please install node fetch // const fetch=require(‘node-fetch’) //Request data according to keyword function request(keyword=”){ return new Promise((resolve,reject)=>{ fetch(`http://example.com/data/${keyword}`) .then(response=> { resolve(response.json()) }) }) } //Main procedure async function […]

  • How to implement a bundler packaging mechanism of webpack?

    Time:2021-5-7

    preface I think these two years should be the most obvious period when “webpack” has been impacted. The previous “snowpack” is based on native browserES ModuleIt is proposed that the rapid development of “vite” standing on the shoulder of “vue3” is really the wave behind pushing the wave ahead, the wave ahead In addition, “vite” […]

  • Webpack – Implementation of a simple version of webpack

    Time:2021-5-3

    Before, I was often overwhelmed by the configuration of webpack,chunk、bundleandmoduleI don’t know the relationship between them,loaderandpluginThe more complete the more confused, optimize the configuration of a lot, the project manager behind the rush, optimization after slow as a turtle! Today, in order to thoroughly understand the construction principle of webpack, we decided to tear it […]

  • Webpack – Implementation of a simple version of webpack

    Time:2021-5-3

    Before, I was often overwhelmed by the configuration of webpack,chunk、bundleandmoduleI don’t know the relationship between them,loaderandpluginThe more complete the more confused, optimize the configuration of a lot, the project manager behind the rush, optimization after slow as a turtle! Today, in order to thoroughly understand the construction principle of webpack, we decided to tear it […]

  • Webpack – Implementation of a simple version of webpack

    Time:2021-5-2

    Before, I was often overwhelmed by the configuration of webpack,chunk、bundleandmoduleI don’t know the relationship between them,loaderandpluginThe more complete the more confused, optimize the configuration of a lot, the project manager behind the rush, optimization after slow as a turtle! Today, in order to thoroughly understand the construction principle of webpack, we decided to tear it […]