webpack: advanced usage

1, Using ESLint in webpack How does ESLint land? Integration with CI/CD systemIntegration with webpack Integration of webpack and ESLint Use eslint loader to check the JS specification at build time. Next, let's use eslint config airbnb, which has many dependencies The first step is to install the dependency npm install eslint eslint-plug ...

Added by mlewczuk on Thu, 06 Jan 2022 12:55:45 +0200

Performance optimization loading pit record

The packaging volume of the project is large, and the loading time of the first screen of the page is too long, resulting in a white screen. Therefore, the ultimate purpose of performance optimization is to improve the user experience. 1,BundleAnalyzer Function: display the packaging graphical information, open an html page to help you analyz ...

Added by dkim777 on Wed, 05 Jan 2022 15:30:35 +0200

THREE.js: build Threejs + typescript + webpack project

catalogue 1. Install node js  2. Install vscode and Microsoft front-end development artifact. 3. Create a new project folder, choose a name at will, here we call it, and then open it with vscode  4. vscode opens the project. As shown below, all you need to do is click the terminal to create a new terminal  5. Enter npm init ...

Added by pingu on Wed, 05 Jan 2022 13:35:15 +0200

Learn the introduction and basic use of webpack: babel

Ask yourself more why every day. You always have unimaginable gains. A rookie Xiaobai's growth path (copyer) Why do you need babel There are many new grammars in the front end, such as ES6, TS, JSX, etc. they all need babel transformation Therefore, learning Babel is very important for us to understand the transformation of code from wri ...

Added by franck on Wed, 05 Jan 2022 09:56:50 +0200

Uncover the mystery of Vue asynchronous components

brief introduction In large applications, some components may not be displayed at the beginning and will only be rendered under specific conditions. In this case, the resources of the component do not need to be loaded at the beginning, and can be requested when necessary. This can also reduce the resource volume loaded on the page for the fir ...

Added by jalbey on Mon, 03 Jan 2022 01:41:43 +0200

Webpack of fashion - beginner level chapter

Fashion Webpack - core concepts of basic articles (2) fashion cloud - CSDN blog fashion Webpack - core concepts of basic articles (2)https://blog.csdn.net/zsx0806/article/details/122198850 Picture from webpack Official website logo   Some methods of loader: css loader - process css files} style loader - insert css into header Less ...

Added by Attila on Fri, 31 Dec 2021 11:47:26 +0200

Front end performance and loading experience Optimization Practice (attached: PWA, offline package, memory optimization, pre rendering)

1, Background: why does the page get stuck? 1.1 long waiting time (performance) The package / third-party script of the project itself is relatively large.JavaScript execution blocks page loading.Pictures are large and numerous. Especially for the white screen time in the first screen resource loading, the longer the user waits, and the sl ...

Added by dsnhouse on Fri, 31 Dec 2021 03:19:10 +0200

Webpack performance optimization

Optimize build speed Optimize output volume WDS Webpack DevServer HMR Hot Module Replacement Live Reloading auto refresh vue: HMR Performance optimization is mainly for the development environment, because production is usually built only once If the file content remains unchanged, the calculated hash value remains unchanged, and the ...

Added by Ghost_81st on Thu, 30 Dec 2021 20:13:36 +0200

webpack personal notes

In essence, webpack is a static module bundler for modern JavaScript applications. When webpack processes an application, it recursively builds a dependency graph that contains each module required by the application, and then packages all these modules into one or more bundle s. install md mypack //New folder cd mypack // Enter your projec ...

Added by inferium on Thu, 30 Dec 2021 17:01:49 +0200

Getting started with webpack

What is webpack? Webpack is a popular packaging tool, which generates a graph from dependent files and packages them into files. When webpack processes an application, it will recursively build a dependency graph, which contains each module required by the application, and then package all these modules into one or more bundle s. Webpack Chine ...

Added by solus on Tue, 28 Dec 2021 20:53:34 +0200