{"_id":"@amanda/talent-dll","_rev":"6-3319a325f0c05038680f30ceffe5fded","name":"@amanda/talent-dll","description":"## 说明","dist-tags":{"latest":"1.0.5"},"versions":{"1.0.1":{"name":"@amanda/talent-dll","version":"1.0.1","main":"dist/talent.js","author":{"name":"xuchengyun","email":"xuchengyun@beisen.com"},"repository":{"type":"git","url":"git+https://github.com/talentui/dll-webpack-config.git"},"engines":{"node":">=6.0.0"},"license":"MIT","dependencies":{"@beisen/backbone":"^1.1.5","@beisen/jquery":"^1.10.5","@beisen/json":"^3.5.29","@beisen/lodash":"^2.2.4","@beisen/marionette":"^1.2.2","@beisen/talent-no-require":"^1.0.3"},"scripts":{"test":"jest","dll":"webpack --config=webpack.config.js"},"devDependencies":{"webpack":"^3.8.1"},"gitHead":"27e26387487c6a3a3398ced9c279ab3dd14c24b1","description":"## 说明","bugs":{"url":"https://github.com/talentui/dll-webpack-config/issues"},"homepage":"https://github.com/talentui/dll-webpack-config#readme","_id":"@amanda/talent-dll@1.0.1","_shasum":"3f3c59369d491f8b1c1e29e28723dd0bcc8bc3ac","_from":".","_npmVersion":"4.1.2","_nodeVersion":"7.7.2","_npmUser":{"name":"amanda","email":"xcy170226008@163.com"},"dist":{"shasum":"3f3c59369d491f8b1c1e29e28723dd0bcc8bc3ac","tarball":"https://registry.npmjs.org/@amanda/talent-dll/-/talent-dll-1.0.1.tgz","integrity":"sha512-5zUvQlwUJ8A3kwCSxysLivxCBZ+rM/1iUEcpMaOfzNhYXFWu9ypU94wPgVHLgdPkHIFXYBklohztnhQtuKbz3w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAP19KE+r1u2mjF0DDrYhECGFzinJSPck/IGHHOYdp+0AiB5N8DnTDZtn7P8TzGzGvVew6Uhvd6fhbfznr5NbUC0zg=="}]},"maintainers":[{"name":"amanda","email":"xcy170226008@163.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/talent-dll-1.0.1.tgz_1509255511754_0.31746532255783677"}},"1.0.2":{"name":"@amanda/talent-dll","version":"1.0.2","main":"dist/talent.dev.js","author":{"name":"xuchengyun","email":"xuchengyun@beisen.com"},"repository":{"type":"git","url":"git+https://github.com/talentui/dll-webpack-config.git"},"engines":{"node":">=6.0.0"},"license":"MIT","dependencies":{"@beisen/backbone":"^1.1.8","@beisen/jquery":"^1.10.5","@beisen/json":"^3.5.29","@beisen/lodash":"^2.2.5","@beisen/marionette":"^1.2.2","@beisen/talent-no-require":"^1.0.6"},"scripts":{"test":"jest","dll":"rm -rf ./dist && webpack --config=webpack.config.js"},"devDependencies":{"@beisen/backbone":"^1.1.9","expose-loader":"^0.7.3","react":"^15.6.2","webpack":"^3.8.1"},"gitHead":"577927d2548ec163537d248b56e74910e4ac6e4d","description":"## 说明","bugs":{"url":"https://github.com/talentui/dll-webpack-config/issues"},"homepage":"https://github.com/talentui/dll-webpack-config#readme","_id":"@amanda/talent-dll@1.0.2","_shasum":"8675633136ceccbbd0ea1da2d34c7a093a3298d6","_from":".","_npmVersion":"4.1.2","_nodeVersion":"7.7.2","_npmUser":{"name":"amanda","email":"xcy170226008@163.com"},"dist":{"shasum":"8675633136ceccbbd0ea1da2d34c7a093a3298d6","tarball":"https://registry.npmjs.org/@amanda/talent-dll/-/talent-dll-1.0.2.tgz","integrity":"sha512-+aI+Dtf4fBv3Wg+1bP8k3b/vldN/R/kVdMHn7G6s6rWuqAsdWMlHCoSRQS1dpHg6cpIqH38nA0O2Y6ZF4cRocQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDJdyjk+4oI6BVEfLEf3deRVrpuTr2FEtLTBhEmfaieWAIgYX4QOFh9NR+iVkSdszCRigU6DreobB8IcmwidKlKzlM="}]},"maintainers":[{"name":"amanda","email":"xcy170226008@163.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/talent-dll-1.0.2.tgz_1509689524525_0.38414279907010496"}},"1.0.3":{"name":"@amanda/talent-dll","version":"1.0.3","main":"dist/talent.dev.js","author":{"name":"xuchengyun","email":"xuchengyun@beisen.com"},"repository":{"type":"git","url":"git+https://github.com/talentui/dll-webpack-config.git"},"engines":{"node":">=6.0.0"},"license":"MIT","dependencies":{"@beisen/backbone":"^1.1.8","@beisen/jquery":"^1.10.5","@beisen/json":"^3.5.29","@beisen/lodash":"^2.2.5","@beisen/marionette":"^1.2.2","@beisen/talent-no-require":"^1.0.6"},"scripts":{"test":"jest","dll":"rm -rf ./dist && webpack --config=webpack.config.js"},"devDependencies":{"@beisen/backbone":"^1.1.9","expose-loader":"^0.7.3","react":"^15.6.2","webpack":"^3.8.1"},"gitHead":"b18e281f694abac9cb703b6c29e09572e48d75d6","description":"## 说明","bugs":{"url":"https://github.com/talentui/dll-webpack-config/issues"},"homepage":"https://github.com/talentui/dll-webpack-config#readme","_id":"@amanda/talent-dll@1.0.3","_shasum":"3025ac2e7b4ef8b18c0e5854e7f6a7a5e54b1d4e","_from":".","_npmVersion":"4.1.2","_nodeVersion":"7.7.2","_npmUser":{"name":"amanda","email":"xcy170226008@163.com"},"dist":{"shasum":"3025ac2e7b4ef8b18c0e5854e7f6a7a5e54b1d4e","tarball":"https://registry.npmjs.org/@amanda/talent-dll/-/talent-dll-1.0.3.tgz","integrity":"sha512-Wt96xvZTYE0znQN0ppCOIT1KkYY6IkC10oILpYoeZhD8vCvM+m9pQOvurUqVZenwUPQ9X4ULnE0NqPj/7bAvNw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDZ1kFrZteILCd1xmV2gHekK9lcr260FFHacWM0PsMzZAIhAOOXz7jvHedZAU3I07u4a8ptcb+uP9jK9Fimf3hQmPjt"}]},"maintainers":[{"name":"amanda","email":"xcy170226008@163.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/talent-dll-1.0.3.tgz_1509703149911_0.29203027789480984"}},"1.0.4":{"name":"@amanda/talent-dll","version":"1.0.4","main":"dist/talent.dev.js","author":{"name":"xuchengyun","email":"xuchengyun@beisen.com"},"repository":{"type":"git","url":"git+https://github.com/talentui/dll-webpack-config.git"},"engines":{"node":">=6.0.0"},"license":"MIT","dependencies":{"@beisen/backbone":"^1.2.0","@beisen/jquery":"^1.10.5","@beisen/json":"^3.5.29","@beisen/lodash":"^2.2.5","@beisen/marionette":"^1.2.2","@beisen/talent-no-require":"^1.0.6"},"scripts":{"test":"jest","dll":"rm -rf ./dist && webpack --config=webpack.config.js"},"devDependencies":{"@beisen/backbone":"^1.1.9","expose-loader":"^0.7.3","react":"^15.6.2","webpack":"^3.8.1"},"gitHead":"3144018464c8b5ac319cc1c225dd82cef46b4070","description":"## 说明","bugs":{"url":"https://github.com/talentui/dll-webpack-config/issues"},"homepage":"https://github.com/talentui/dll-webpack-config#readme","_id":"@amanda/talent-dll@1.0.4","_shasum":"6ad1c03a10d22fd23243398241fec8f43b0c31d4","_from":".","_npmVersion":"4.1.2","_nodeVersion":"7.7.2","_npmUser":{"name":"amanda","email":"xcy170226008@163.com"},"dist":{"shasum":"6ad1c03a10d22fd23243398241fec8f43b0c31d4","tarball":"https://registry.npmjs.org/@amanda/talent-dll/-/talent-dll-1.0.4.tgz","integrity":"sha512-sP+UWSO3XkltfPwGc/SZq2Q97mwXyfscUhoOUE+1mpQ5D+AbukvuW23i+tBbdVWsrLTLY5wgvzxWrTilW8OPTw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGIJK4s6VDcJ5IeVAPvcs0F83PFHFHQ9nrUeP6kp9CXMAiEAu7gi0Y5zFLFcy3+m4f/WBMYIr5fctAzCl3uX9NFTECo="}]},"maintainers":[{"name":"amanda","email":"xcy170226008@163.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/talent-dll-1.0.4.tgz_1509711277175_0.1416356775444001"}},"1.0.5":{"name":"@amanda/talent-dll","version":"1.0.5","main":"dist/talent.dev.js","author":{"name":"xuchengyun","email":"xuchengyun@beisen.com"},"repository":{"type":"git","url":"git+https://github.com/talentui/dll-webpack-config.git"},"engines":{"node":">=6.0.0"},"license":"MIT","dependencies":{"@beisen/backbone":"^1.2.0","@beisen/jquery":"^1.10.5","@beisen/json":"^3.5.29","@beisen/lodash":"^2.2.5","@beisen/marionette":"^1.2.6","@beisen/talent-no-require":"^1.0.7"},"scripts":{"test":"jest","dll":"rm -rf ./dist && webpack --config=webpack.config.js"},"devDependencies":{"@beisen/backbone":"^1.1.9","expose-loader":"^0.7.3","react":"^15.6.2","webpack":"^3.8.1"},"gitHead":"e35866ccc82d36c2d70e32a7e84e8be6ab3f76e1","description":"## 说明","bugs":{"url":"https://github.com/talentui/dll-webpack-config/issues"},"homepage":"https://github.com/talentui/dll-webpack-config#readme","_id":"@amanda/talent-dll@1.0.5","_shasum":"10afd2454e72bf7f9fe9051bb6453a55c607cffd","_from":".","_npmVersion":"4.1.2","_nodeVersion":"7.7.2","_npmUser":{"name":"amanda","email":"xcy170226008@163.com"},"dist":{"shasum":"10afd2454e72bf7f9fe9051bb6453a55c607cffd","tarball":"https://registry.npmjs.org/@amanda/talent-dll/-/talent-dll-1.0.5.tgz","integrity":"sha512-JiBcxtMzR+FE/6Qz6csf0Z5BefjCG5GSvXG6NOfc4i6euXg3BkBjffy+y4NcEATbjakwmYX/FAVKN4pjHXAsAg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDtS9UYWtAK1Kh570Zc61gsM08cCz9lpHuJVCboJEygbwIhAJ9FQpk7sb0IGOQQt3d496YIrvZsNj/IbDJNG6Jaotaa"}]},"maintainers":[{"name":"amanda","email":"xcy170226008@163.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/talent-dll-1.0.5.tgz_1509719488826_0.8490352847147733"}}},"readme":"# talent-ui-dll-webpack-config\n\n## 说明\n\n用来协助生成talent-ui 2.0可以自动识别的dll的工具， 你可以自己配置[DllPlugin](https://webpack.js.org/plugins/dll-plugin/)来生成Dll, 但是talent-ui-dll-webpack-config集成了一套统一的逻辑和命名规则，可以让[talent-ui-webpack-config](http://gitlab.beisencorp.com/ux-cnpm/talent-ui-webpack-config)自动识别出文件路径。并且可以自动根据生产或者开发环境自动选取对应文件。\n\n\b输出的dll文件名称是\b通过读取dll项目的package.json中的name和version并交给 [talent-ui-dll-naming-convention](http://gitlab.beisencorp.com/ux-cnpm/talent-ui-dll-naming-convention)来自动生成。在**talent-ui-webpack-config\u001d**中也使用了这个**naming-convention**。所以通过talent-ui-dll-webpack-config生成的dll被\b自动识别出来。\n\n\b通过talent-ui-dll-webpack-config生成的dll会同时输出生产环境和开发环境的dll, 开发环境的dll, 使用了NamedModulePlugin，而生成环境的dll没有使用NamedModulePlugin， 使用了UglifyJSPlugin来压缩输出代码。\n\n## 应用\n\n\b初始化项目：\n\n```bash\n    yarn init -y\n```\n\n安装talent-ui-dll-webpack-config\n\n```bash\n    yarn add @beisen/talent-ui-dll-webpack-config --dev\n    \n```\n\n在你的应用项目下面创建webpack.config.js\n\n```js\n    const dllWebpackConfig = require('@beisen/talent-ui-dll-webpack-config');\n    const path = require('path');\n\n    module.exports = dllWebpackConfig({\n        root: path.resove(__dirname /**/) //这里统一为项目的根目录，方便使用统一的context,\n        venders: require('./vender-list')\n    })\n\n```\n\n创建vender-list.js\n\n```js\n    module.exports = [\n        'react',\n        'react-dom',\n        ...所有你\b想引进来的库\n    ]\n\n```\n\n安装你需要打包的库\n\n```bash\n    yarn add react react-dom ....\n```\n\n\b执行打包：\n\n```bash\n    webpack -c webpack/webpack.config.js\n```\n\n查看输出文件，假如你package.json中的name是 qd-fed-dll, 版本号是1.0.0, 则输出的文件应该包含：\n\n```js\n    //生产环境\b带版本号\n    - qd-fed-dll-1.0.0.min.js\n    - qd-fed-dll-1.0.0.manifest.json\n    //开发环境不带版本号\n    - qd-fed-dll.dev.js\n    - qd-fed-dll.dev.manifest.json\n```\n\n## 更新日志\n\n#### 10.10 \n\n> 添加对dllList参数支持，如果当前需要打包的dll依赖了其他的dll，添加到dllList参数中即可\n\n```js\n    const dllWebpackConfig = require('@beisen/talent-ui-dll-webpack-config');\n    const path = require('path');\n\n    module.exports = dllWebpackConfig({\n        root: path.resove(__dirname /**/), //这里统一为项目的根目录，方便使用统一的context,\n        venders: require('./vender-list'),\n        dllList: ['@beisen/talent-ui-dll-foundation']\n    })\n```","maintainers":[{"name":"amanda","email":"xcy170226008@163.com"}],"time":{"modified":"2022-06-12T14:38:15.648Z","created":"2017-10-29T05:38:31.981Z","1.0.1":"2017-10-29T05:38:31.981Z","1.0.2":"2017-11-03T06:12:04.602Z","1.0.3":"2017-11-03T09:59:10.053Z","1.0.4":"2017-11-03T12:14:37.374Z","1.0.5":"2017-11-03T14:31:29.034Z"},"homepage":"https://github.com/talentui/dll-webpack-config#readme","repository":{"type":"git","url":"git+https://github.com/talentui/dll-webpack-config.git"},"author":{"name":"xuchengyun","email":"xuchengyun@beisen.com"},"bugs":{"url":"https://github.com/talentui/dll-webpack-config/issues"},"license":"MIT","readmeFilename":"README.md"}