Skip to content

lisiyizu/vue-dynamic-module-example

Repository files navigation

demo

vue-dynamic-module-example

This project is inspired by webpack-virtual-modules + require.context

webpack-virtual-modules:https://github.com/sysgears/webpack-virtual-modules

Project setup

npm install

Compiles and hot-reloads for development

npm run serve --module=foo     (单模块编译)
npm run serve --module=foo,bar (多模块编译)

Compiles and minifies for production

npm run build

TODOs

  • 模块化打包部署,分布式发布
  • 后续基于 webpack5-module-federation 做模块化共享实践

Releases

No releases published

Packages

No packages published