I'm writing a javascript webapp using webpack 2 as module bundler.  What I need is a way to mix long term caching feature (https://webpack.js.org/guides/caching/) and code splitting (https://webpack.js.org/guides/code-splitting/).  I'm able t...
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....
Using webpack2.2.0-rc1 and react routerv4, and using this gist to make code spliting to work, which states the following  function asyncComponent(getComponent) {   return class AsyncComponent extends React.Component {     static Component = null;...
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'm using Create-React-App and am looking to use the dynamic import() supported by webpack 2.0 to import a module based on a variable string.  I've looked at the official proposal (https://github.com/tc39/proposal-dynamic-import) and it seems...
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...
We are working on a React component library. Some of the components need to updated without the need to redeploy the host app code. This is very much like say Google Maps library, where the client API is a small shell code which imports the actual Ma...
I did lazy loading config in my angular project. That is done, But there is a problem.  because of my lazy loading component is too big (700kb), time to load component from web server is too long (0.5s)  I have to show loading component when lazy loa...
I'm trying to implement lazy-loading components with react-loadable. I've followed their guide but I can't get it to work.  I've got 3 loadable components  const LazyOne = Loadable({   loader: () => import(/* webpackChunkName: '...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.