How to use dllplugin package to extract public dependencies and the problems encountered in the micro front end (Qiankun) project
preface
For large projects, it is often necessary to extract the dependencies of common parts to avoid repeated loading of dependencies. When extracting public plug-ins, we can consider using externals [Webpack's externals. note]. However, the premise of externals is that all dependencies must have a cdn or find its corresponding JS file, such ...
Posted by Dark-Hawk on Thu, 20 Jan 2022 14:21:29 +0100
Axios api, js structurally defines and invokes business api interfaces.
axios-api
@no-996/axios-api A tool based on axios that can create structured instances has the following characteristics:
Based on axios and compatible with axios api, it can be migrated and used seamlessly.
Two common request termination scenarios (based on cancelToken) are built in to prevent repeated interface calls.
The built-in caching me ...
Posted by eddiegster on Sun, 16 Jan 2022 22:37:31 +0100
The hash, chunkhash, contenthash differences in webpack4!
The responsiveness of the website is the first element of the user experience, and its importance is self-evident. Response speed is influenced by many factors, such as different business scenarios, different user terminals, different technology stacks.
For faster response, on the one hand, it is expected that each time a page resource is re ...
Posted by Bac on Sun, 16 Jan 2022 19:39:34 +0100
[KuangStudy] Introduction to big front-end skills
source
Course - KuangStudy
Learning companion - big front-end advanced - Chapter learning - KuangStudy - Articles
The most easy to understand explanation of big front-end skills must be read! The fastest time to learn about NodeJS, Npm, Es6, Babel, Webpack and modular use. From now on, there is no fear of front-end code!
1. Front end develo ...
Posted by brodywx on Sat, 15 Jan 2022 19:04:33 +0100
Can't you enjoy the core knowledge of webpack? Come and watch 10000 words of advanced knowledge
🤾♀️ preface
Previous article We talked about some basic features of webpack, but it's not enough to know the basic features alone. Therefore, in today's article, we will bring you the advanced features of webpack, including but not limited to the differential packaging of dev environment and prod environment, as well as the techniq ...
Posted by mothermugger on Sat, 15 Jan 2022 12:13:26 +0100
Shang Silicon Valley system project (real-time update)
Front end Vue core
Developing a front-end module can be summarized as the following steps: (1) Write static pages and split them into static components; (2) Send request (API); (3) vuex (triple operation of actions, changes and state); (4) Component to obtain warehouse data and display it dynamically;
1. vue file directory analysis
node_modu ...
Posted by ouch! on Wed, 12 Jan 2022 12:39:34 +0100
webpack: basic usage
1, babel
What is babel? The browser does not support ES6 syntax well. Some ES6 syntax cannot be recognized by the browser; The JSX syntax of React cannot be recognized by the browser. It needs to be converted to the syntax recognized by the browser before it can be interpreted and executed by the browser. We need babel to do this and use babel ...
Posted by dookie on Thu, 06 Jan 2022 07:15:30 +0100
On the sorting and building process of Webpack
preface
Nowadays, many web pages can actually be regarded as function rich applications, which have complex JavaScript code and a lot of dependency packages. Modularity allows us to refine complex programs into small files; Similar to TypeScript, a development language developed on the basis of javascript: it enab ...
Posted by Namadoor on Wed, 05 Jan 2022 13:26:26 +0100
Handwritten simple webpack
Compile product analysis (() => {
// Module dependency
var __webpack_modules__ = ({
"./src/index.js":
((module, __unused_webpack_exports, __webpack_require__) => {
// Execute the module code, where it is executed at the same time__ webpack_require__ Reference code
eval(`const str = __webpack_require ...
Posted by michealholding on Wed, 05 Jan 2022 03:57:36 +0100
Getting to know webpack packaging
Getting to know webpack for the first time and getting started with Xiaobai
preface:
webpack is a node based build tool, and one of its features is packaging
Because the front-end has been developed in engineering, the code written can no longer run directly on the browser
At this time, webpack will help you compile the code and packag ...
Posted by samba_bal on Tue, 04 Jan 2022 17:53:30 +0100