Remove webpack
article thumbnail

How to Increase Your Page Size by 1,500% with webpack and Vue

CSS - Tricks

If any of those completely relatable reasons resonates with you, I’d like to show you how I increased the size of my CSS by 1,500% — and you can too, with one simple webpack trick. I read this excellent blog post from Sarah Drasner called, "How to import a Sass file into every component in your Vue app." One weird trick.

Cache 63
article thumbnail

Improving JavaScript Bundle Performance With Code-Splitting

Smashing Magazine

It’s a common misconception that the code which is produced by the framework build tools (Webpack, for example) is fully optimized and cannot be improved upon any further. Code splitting is available out-of-the-box for Create React App and other frameworks that use Webpack like Gatsby and Next.js. import("path/to/myFunction.js").then((myFunction)

Code 89
Insiders

Sign Up for our Newsletter

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Trending Sources

article thumbnail

Front-End Performance Checklist 2021

Smashing Magazine

Defining The Environment Choosing a framework, baseline performance cost, Webpack, dependencies, CDN, front-end architecture, CSR, SSR, CSR + SSR, static rendering, prerendering, PRPL pattern. Stick to your environment for building, be it Grunt, Gulp, Webpack, Parcel, or a combination of tools. Watch out for the Webpack Roadmap 2021.

article thumbnail

Gatsby Headaches: Working With Media (Part 2)

Smashing Magazine

Solving Markdown Headaches In Gatsby In Gatsby, Markdown files are commonly used to programmatically create pages, such as blog posts. The /static folder at the root of a Gatsby project can store assets that won’t be parsed by webpack but will be available in the public directory. Save images in the static folder. The disadvantage?

Media 87
article thumbnail

20+ Powerful React libraries you should explore in 2022

Enprowess

The Create React App tool is more appropriate for simple web apps as it has underlays of EsLint , Webpack Babel, etc. Ant Design is a consolidated development framework of Webpack, DVA, NPM, Dora, and Babel. React-Fabric is secured by extensively used frontend languages modules like Webpack, CSS (SASS), and ES6+.

article thumbnail

Methods Of Improving And Optimizing Performance In React Apps

Smashing Magazine

For example, the image below shows Chrome’s “Performance” tab profiling and analyzing my blog in development mode. The image below is the profiler summary of my blog in development mode using React Developer Tools Profiler: React Developer Tools Profiler flamegraph ( Large preview ). Performance profiler summary ( Large preview ).

article thumbnail

Node vs React Comparison: Which to Choose for Your JS Project?

Enprowess

For Short compilation, Node bundles a React application into a single file using webpack and many other Node modules. appeared first on EnProwess Blog. There are two reasons for that: Node works with the NPM registry to install any package through the NPM Command Line Interface (CLI) using a Node Package Manager. a Perfect Choice?