Skip to content
Advertisement

Tag: webpack-2

webpack dynamic module loader by require

OK, i have searched high and low but cannot reliably deterrmine if this is or is not possible with webpack. https://github.com/webpack/webpack/tree/master/examples/require.context Appears to indicate that one can pass a string to a function and it load a module… But my attempt is just not working: webpack.config.js The server.js The module in modules/ named test.js But the result is always the

Async components Vue 2

I’m trying to use async components. Here is my configuration: Vue 2 using Single File Component approach Webpack 2 Vue Router The app is pretty basic, I have an “everyone” section contained in App and an “admin” section contained in Admin. I would like to load the component and all the .js related to the Admin if and only if

Advertisement