Open yansenlei opened 2 years ago
Get unique module-id by the hash resourcePath, This makes it possible for multiple projects to run simultaneously on a single project.
e.g. A parent project has two sub-project, To prevent the module-id conflict.
Before:
ProjectA/src/view.vue => module-id: f82f3d04
src/view.vue
f82f3d04
ProjectB/src/view.vue => module-id: f82f3d04
After:
ProjectA/src/view.vue => module-id: 541fde99
ProjectA/src/view.vue
541fde99
ProjectB/src/view.vue => module-id: 35fda838
ProjectB/src/view.vue
35fda838
Get unique module-id by the hash resourcePath, This makes it possible for multiple projects to run simultaneously on a single project.
e.g. A parent project has two sub-project, To prevent the module-id conflict.
ProjectA/
src/view.vue
=> module-id:f82f3d04
ProjectB/
src/view.vue
=> module-id:f82f3d04
ProjectA/src/view.vue
=> module-id:541fde99
ProjectB/src/view.vue
=> module-id:35fda838