I assume that I can achieve what I am trying to do with webpack but still could not figure it out. Here is the use case.   I have couple of Angular Apps (will get loaded within same browser window) which will be reusing exactly the same vendor bundle...
I'm using gulp and I want to know if it has capabilities for code splitting. Something similar to what is mentioned here in the webpack site . Ive looked online but not seen anything dedicated to that....
How to import from a multiple class exported js file in react-loadable. I am trying to import CustomButton from MyButton.js using react-loadable in Home.js. This is the only way I know to do it, is not working.  MyButton.js  import {   CustomButton,...
I have lots of code shared between web and web worker parts of my browser app.  How can I tell webpack to split my code up into common chunks so that the result is garanteed to work 100%?  The webworker code breaks (fails at runtime) after I tell web...
I'm using ES6 code splitting in my app. Works great! But, I'm not a fan of using a lot of boilerplate code.  This is probably a newbie question, but can someone explain to me why this works:  export const Router = () => {   return (     &l...
I've inherited a server-side rendered / Universal React/Redux app. Building it for Production leaves me with a 6MB bundle and ~1 sec (wifi) load time which i'd obviously like to reduce.  Being a SSR app it's split like:  src/   client/...
The prevailing pattern in single page app security seems to be:   User authenticates themselves User gets a token User makes api requests with the token   That's fine for limiting access to data, but in a lot of cases, code for UI that might have...
Can anyone explain to me how to convert this es6 code example into a code splittable chunk via webpack?  I haven't been able to find any other good examples.   import flexslider from 'flexslider'; import jqueryEasing from 'jquery-easi...
It's able to use externals to use a global variable, but is it possible to lazy load the external js file on demand like what the Code Splitting feature does?...
I am trying to create 2 separate builds using rollup.js: application.js and dependencies.js, contaning my application code, and common library code (react, react-dom, etc.), respectively.  The docs say I should be able to simply use externals: ['...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.