{"versions":{"0.0.1":{"name":"@fawkesjs/module-index-export-plugin","version":"0.0.1","description":"创建一个@/modules下的所有vue文件的索引文件","main":"index.js","peerDependencies":{"webpack":"^5"},"author":{"name":"cytra"},"license":"MIT","gitHead":"4d0d8ac00018f52e8fcfaa538a84bcc969d0331a","_id":"@fawkesjs/module-index-export-plugin@0.0.1","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-Pwrbra8OD+eSPlMaqbbc8iEgR6ZZPzwaNvq6oCNl4QQphRF4oHi8wi+maHQUIkmsPrsDTAfsWS77N3LBJMNEqA==","shasum":"9b807ae3b137ac4393c93b847b27a4628b8f1ba6","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@fawkesjs/module-index-export-plugin/-/module-index-export-plugin-0.0.1.tgz","fileCount":3,"unpackedSize":2540,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDZUdh6p2f6fBpCLPozCWS34tKtjYRXIGpeZJl/bmgkeAiEA66aqvi70/OpJWXLGu1HedGgapvKbIgP22ReKXQlvzGI="}],"size":1213},"_npmUser":{"name":"anonymous","email":"cytra_chen@126.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"cytra_chen@126.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/module-index-export-plugin_0.0.1_1695177627382_0.6256959858155322"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-09-20T02:40:27.551Z","publish_time":1695177627551,"_source_registry_name":"default","contributors":[]}},"dist-tags":{"latest":"0.0.1"},"name":"@fawkesjs/module-index-export-plugin","time":{"created":"2023-09-20T02:41:27.411Z","modified":"2023-09-20T02:41:27.859Z","0.0.1":"2023-09-20T02:40:27.551Z"},"readme":"# module-index-export-plugin\r\n\r\n它会在moduleIndexFile位置创建一个文件索引，索引包含@/modules下的所有vue文件\r\n\r\n## 使用方法\r\n\r\nHost webpack.config\r\n\r\n```javascript\r\nconst ModuleIndexExportPlugin = require('@fawkesjs/module-index-export-plugin')\r\n\r\nconst moduleIndexFile = './customFileName.js'\r\n\r\nconst config = {\r\n  ...otherConfigs\r\n  plugins: [\r\n    new ModuleIndexExportPlugin({\r\n      filePath: path.resolve(__dirname, `${moduleIndexFile}`)\r\n    }),\r\n    ...otherPlugins\r\n  ]\r\n}\r\n```\r\n\r\n## 模块联邦配合使用\r\n\r\nHost webpack.config\r\n\r\n```javascript\r\nconst ModuleIndexExportPlugin =  require('@fawkesjs/module-index-export-plugin')\r\nconst ModuleFederationPlugin = require('webpack').container.ModuleFederationPlugin\r\n\r\nconst moduleIndexFile = './customFileName.js'\r\n\r\nconst config = {\r\n  ...otherConfigs\r\n  plugins: [\r\n    new ModuleIndexExportPlugin({\r\n      filePath: path.resolve(__dirname, `${moduleIndexFile}`)\r\n    }),\r\n    new ModuleFederationPlugin({\r\n      exposes: {\r\n         './Modules': `${moduleIndexFile}`\r\n      },\r\n      ...otherModuleFederationPluginConfig\r\n    })\r\n  ]\r\n}\r\n```","users":{}}