{"id":14973811,"url":"https://github.com/easy-team/easywebpack-weex","last_synced_at":"2025-03-29T13:31:40.067Z","repository":{"id":74245561,"uuid":"94440985","full_name":"easy-team/easywebpack-weex","owner":"easy-team","description":"A Simple Weex + Vue + Webpack Build Solution","archived":false,"fork":false,"pushed_at":"2019-03-29T05:43:32.000Z","size":291,"stargazers_count":7,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-22T08:51:18.545Z","etag":null,"topics":["vue2","webpack","webpack-weex","webpack2","webpack3","weex","weex-cli","weex-native","weex-vue","weex-web","weex-webpack"],"latest_commit_sha":null,"homepage":"https://easyjs.cn","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/easy-team.png","metadata":{"files":{"readme":"README.md","changelog":"History.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-06-15T13:15:05.000Z","updated_at":"2020-10-28T03:22:21.000Z","dependencies_parsed_at":"2023-05-28T05:45:42.152Z","dependency_job_id":null,"html_url":"https://github.com/easy-team/easywebpack-weex","commit_stats":{"total_commits":34,"total_committers":2,"mean_commits":17.0,"dds":0.3529411764705882,"last_synced_commit":"f4df9b25a4d2076c0bc6281c2f4ec0a9290d8d36"},"previous_names":["hubcarl/easywebpack-weex"],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/easy-team%2Feasywebpack-weex","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/easy-team%2Feasywebpack-weex/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/easy-team%2Feasywebpack-weex/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/easy-team%2Feasywebpack-weex/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/easy-team","download_url":"https://codeload.github.com/easy-team/easywebpack-weex/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246190453,"owners_count":20738031,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["vue2","webpack","webpack-weex","webpack2","webpack3","weex","weex-cli","weex-native","weex-vue","weex-web","weex-webpack"],"created_at":"2024-09-24T13:49:26.995Z","updated_at":"2025-03-29T13:31:39.534Z","avatar_url":"https://github.com/easy-team.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# easywebpack-weex\n\n[![NPM version][npm-image]][npm-url]\n[![build status][travis-image]][travis-url]\n[![Test coverage][codecov-image]][codecov-url]\n[![David deps][david-image]][david-url]\n[![Known Vulnerabilities][snyk-image]][snyk-url]\n[![npm download][download-image]][download-url]\n\n[npm-image]: https://img.shields.io/npm/v/easywebpack-weex.svg?style=flat-square\n[npm-url]: https://npmjs.org/package/easywebpack-weex\n[travis-image]: https://img.shields.io/travis/hubcarl/easywebpack-weex.svg?style=flat-square\n[travis-url]: https://travis-ci.org/hubcarl/easywebpack-weex\n[codecov-image]: https://img.shields.io/codecov/c/github/hubcarl/easywebpack-weex.svg?style=flat-square\n[codecov-url]: https://codecov.io/github/hubcarl/easywebpack-weex?branch=master\n[david-image]: https://img.shields.io/david/hubcarl/easywebpack-weex.svg?style=flat-square\n[david-url]: https://david-dm.org/hubcarl/easywebpack-weex\n[snyk-image]: https://snyk.io/test/npm/easywebpack-weex/badge.svg?style=flat-square\n[snyk-url]: https://snyk.io/test/npm/easywebpack-weex\n[download-image]: https://img.shields.io/npm/dm/easywebpack-weex.svg?style=flat-square\n[download-url]: https://npmjs.org/package/easywebpack-weex\n\n基于 easywebpack 的 Weex Native 和 Weex Web 打包构建解决方案.\n\n\n## 安装\n\n```bash\n$ npm i easywebpack-weex --save-dev\n```\n\n## 使用\n\n```js\nconst weex = require('easywebpack-weex');\n// 获取 webpack weex 配置\nconst webpackConfig = weex.getWeexWebpackConfig({\n  env: process.env.BUILD_ENV, // 支持 dev，test，local 模式\n  entry: {\n    index: 'src/app.js'\n  }\n});\n\n// 获取 webpack web 配置\nconst webpackConfig = weex.getWebWebpackConfig({\n  entry: {\n    index: 'src/app.js'\n  }\n});\n\n//  获取 webpack weex 和 web 配置\nconst webpackConfig = weex.getWebpackConfig({\n  entry: {\n    index: 'src/app.js'\n  }\n});\n```\n\n\n## 开发构建\n\n- 使用 webpack-cli 开发构建服务\n\n```bash\nwebpack --config webpack.config.js\n```\n\n-  使用 easywebpack 内置开发构建服务\n\n\n```js\nconst weex = require('easywebpack-weex');\nif (process.env.NODE_ENV === 'development') {\n  // development mode: webpack building and start webpack hot server\n  weex.server(webpackConfig);\n} else {\n  // build file to disk\n  weex.build(webpackConfig);\n}\n```\n\n## 工程骨架\n\n[easywebpack-weex-boilerplate](https://github.com/easy-team/easywebpack-weex-boilerplate) Weex构建项目骨架\n\n![webpack-weex-compile](https://github.com/easy-team/easywebpack-weex/blob/master/doc/images/webpack-weex-compile.png)\n\n![webpack-weex-debug](https://github.com/easy-team/easywebpack-weex/blob/master/doc/images/webpack-weex-debug.png)\n\n\n## License\n\n[MIT](LICENSE)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feasy-team%2Feasywebpack-weex","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feasy-team%2Feasywebpack-weex","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feasy-team%2Feasywebpack-weex/lists"}