Showing posts with label webpack. Show all posts
Showing posts with label webpack. Show all posts
Wednesday, December 13, 2017
Thursday, October 19, 2017
Getting high Progressive Web App score on React and Material-UI
The fast and progressive web application is a must-have standard for recent front-end development. Meet both progressiveness and performance sometimes become not so easy. Single page application usually comes with a heavy JavaScript code bundle.
Tuesday, September 19, 2017
Filtering chunks · Issue #6 · GoogleChrome/preload-webpack-plugin
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Monday, September 18, 2017
Server side rendering with React.js, React Router v4, React Helmet and CSS Modules
If we look on the web today we notice that multiple sites make priority on Interactivity rather than Performance. While they look interesting and provide unusual user experience they have one common problem - they make people wait.
Friday, August 18, 2017
Two Tips to Improve Performance by 30% With React and Webpack
At Teachers Pay Teachers, we take performance seriously since it is widely accepted that performance delights users, increases search engine rankings and improves conversion rate.
Tuesday, June 27, 2017
How to use Webpack’s new “magic comment” feature with React Universal Component + SSR
Webpack 2.4.0, which came out a few weeks ago, launched with a very interesting new feature: “magic comments.” In combination with dynamic imports, “magic comments” greatly simplify code-splitting + server-side rendering.
Tuesday, June 20, 2017
A dirty hack that took 30% off our Webpack size
At my day job, we’re using Webpack 2 to make our JavaScript as small as possible. Bundle splitting ensures web apps get only the code they need, individual vendor files ensure caching stays as stable as possible, dead code elimination and tree shaking make our files small.
Monday, June 19, 2017
optimization
That’s a simple but effective way to optimize your web app. As you already know (if you’ve read the remaining docs) webpack gives your modules and chunks ids to identify them. Webpack can vary the distribution of the ids to get the smallest id length for often used ids with a simple option:
Friday, June 2, 2017
Two Quick Ways To Reduce React App’s Size In Production
If you are building a React + Redux App that has Webpack, then you might have noticed that the size of the final bundle.js (the dev version) for a simple app itself could be 1MB- 2MB! For example: Below is a picture from Webpack stats analyzer for the simple react-redux-blog (live).
Tuesday, May 30, 2017
Migrating from react-rails to Webpacker
As an early React adopter, react-rails was the obvious choice for integrating it into Ruby on Rails, and despite countless Medium posts over the years about the need to switch to Webpack right this minute using some Rube Goldberg machine of a setup, the additional overhead and effort rarely felt w
Introducing Webpacker
With the ever-changing JavaScript world, one important thing that has been lacking in Rails was support for proper bundling system for JavaScript assets, but soon this is going to change with the introduction of new Webpacker gem. Rails 5.
Modern JavaScript & Ruby on Rails with rails/webpacker
There’s no denying that JavaScript has evolved a lot in the past years, and for Rails, keeping up has been a challenge.
Saturday, May 27, 2017
shakacode/react_on_rails
For a complete example of this gem, see our live demo at www.reactrails.com. (Source Code) Aloha from Justin Gordon (bio) and the ShakaCode Team! We're actively looking for new projects involving React, React-Native, and Rails. Please contact me if we could potentially help you in any way.
Friday, May 26, 2017
Server Side Rendering with CSS Modules
It’s currently still relatively hard to understand how to use CSS modules on the server & client based on existing docs. A large part of that I think is that there are generally a lot of moving parts and no definitive way to do anything.
Thursday, May 25, 2017
React Hot Loader
Edit the component below. React Hot Loader will keep it mounted, preserving the state. Note: In a real environment, hot reloading occurs after you save file in the editor.
Using React with Webpack Tutorial
This article is a guest post from Christian Alfoni, who is a speaker among other world-class React hackers at Reactive2015 in Bratislava, November 2-4 2015. It has been a year since I first got into React and Webpack. I have many times expressed that Webpack is amazing, but hard to configure.
Saturday, May 20, 2017
Code Chunking with Webpack — A pragmatic approach
Ever since the inception of client side JS taking control of the web, we have observed a hefty amount of JS being written or included in our web apps. Gone are the times when our servers used to render the html for our web apps (although they’re used for initial server side rendering).
Splitting Vendor and App Javascript Files with Webpack
It’s been a couple of weeks since I last messed with my Webpack configuration as I was learning Redux. I’ve noticed, however, that my code is growing ever larger. Part of that is the sheer number of libraries I have. It’s probably fairly common, but here is what I have:
Friday, May 19, 2017
Adding Sass or Scss to Create-React-App
Recently, Facebook released a fantastic tool for creating React applications based on a set of minimal and opinionated ideas to help beginners dive into learning React without having to worry about the typically complicated tooling.
Thursday, May 18, 2017
Setup a React Environment Using webpack and Babel
Use Redux to get predictable state in our applications. React is a Javascript library, by Facebook, that is used for building user interfaces. It is a bomb library that offers so many advantages but one of the biggest setbacks is the steep learning curve.
Subscribe to:
Posts (Atom)
bundlephobia
JavaScript bloat is a more real problem today than it ever was. Bundlephobia lets you understand the performance cost of adding a npm pack...
-
Programmers almost always need the ability to find and replace certain text across multiple files in their projects. Most IDEs provide find ...
-
This is yet another rails stack installation how to. It is useful for installing a production rails hosting environment using Nginx as the ...
-
Git is a Version Control System , it is used to keep a history of all the changes you made into your code, manage releases, makes it easier...