{"id":14976525,"url":"https://github.com/sokis/vuex-cli-webpack","last_synced_at":"2025-10-27T20:32:10.762Z","repository":{"id":10057707,"uuid":"64267128","full_name":"sokis/vuex-cli-webpack","owner":"sokis","description":"vue webpack 配置工具","archived":false,"fork":false,"pushed_at":"2024-10-20T05:51:19.000Z","size":2511,"stargazers_count":3,"open_issues_count":111,"forks_count":2,"subscribers_count":2,"default_branch":"next","last_synced_at":"2024-10-30T08:56:48.466Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/sokis.png","metadata":{"files":{"readme":"README.md","changelog":null,"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":"2016-07-27T01:34:42.000Z","updated_at":"2022-01-06T14:02:49.000Z","dependencies_parsed_at":"2023-01-12T15:01:27.258Z","dependency_job_id":"20754ad9-f882-48ed-938c-98158f57e193","html_url":"https://github.com/sokis/vuex-cli-webpack","commit_stats":{"total_commits":77,"total_committers":2,"mean_commits":38.5,"dds":"0.025974025974025983","last_synced_commit":"ac190ca53ca05dad6e465dbf9541ac29e0482ef0"},"previous_names":[],"tags_count":32,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sokis%2Fvuex-cli-webpack","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sokis%2Fvuex-cli-webpack/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sokis%2Fvuex-cli-webpack/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sokis%2Fvuex-cli-webpack/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sokis","download_url":"https://codeload.github.com/sokis/vuex-cli-webpack/tar.gz/refs/heads/next","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238553307,"owners_count":19491405,"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":[],"created_at":"2024-09-24T13:54:01.532Z","updated_at":"2025-10-27T20:32:10.232Z","avatar_url":"https://github.com/sokis.png","language":"JavaScript","readme":"# vuex-cli-webpack\n一个独立的vue2+webpack2 构建，开发配置工具\n* 独立的配置项依赖 做专业的事\n* 支持自定义配置，方便扩展。便于原始项目迁移\n\n## 使用方法\n\n```javascript\nimport { server , compile} from 'vuex-cli-webpack'\n\n//调用\nserver()\ncompile()\n```\n\n**命令行调用**\n```\n# 启动开发服务器\n$ node ./node_modules/.bin/vserver\n\n\n# 编译代码\n$ node ./node_modules/.bin/vcompile\n\n```\n\n## 一些约束\n默认的配置是按照目前流行的配置方案来做的，实际开发中多少会需要修改\n这个时候，你只需要在项目根目录下创建`config`文件夹，并且在文件夹下添加对应的配置文件即可\n```\nconfig\n├── development.conf.js      # 开发环境配置\n├── production.conf.js\t\t # 生产环境配置\n├── ... ...\t\t\t\t\t # 测试等\n└── webpack.config.js\t\t # webpack配置\n```\n\n## development.conf.js\n\n开发环境下的配置文件\n\n```javascript\n// ======================================================\n// Overrides when NODE_ENV === 'development'\n// ======================================================\nmodule.exports = config =\u003e ({\n  compiler_public_path: '/',\n  compiler_devtool: 'eval'\n})\n```\n\n## production.conf.js\n\n生产环境下的配置文件\n\n```javascript\n// ======================================================\n// Overrides when NODE_ENV === 'production'\n// ======================================================\nmodule.exports = config =\u003e ({\n  compiler_public_path: '',\n  compiler_devtool: false,\n  compiler_hash_type: 'chunkhash',\n  compiler_html_minify: true,\n  compiler_stats: {\n    chunks: true,\n\tchunkModules: true,\n\tcolors: true\n  }\n})\n```\n\n### 一部分配置项说明\n\n+ **compiler_public_path**：webpack.publicPath 用法相同\n+ **compiler_hash_type**：设置文件名中hash命名类型\n+ **compiler_html_minify**：设置html,js,css是否压缩\n\n\n## webpack.config.js\n\n默认提供了一套配置，当需要修改配置请在项目根路径下`config`目录中添加 `webpack.config.js`\n\n```javascript\n// ======================================================\n// webpack.config.js\n// ======================================================\nmodule.exports = ({ paths }) =\u003e {\n\tentry: {\n\t\tapp: './src/main.js'\n\t},\n\tresolve: {\n\t\talias: {\n\t\t\t\"store\": paths.src('store'),\n\t\t\t\"components\": paths.src('components')\n\t\t}\n\t}\n}\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsokis%2Fvuex-cli-webpack","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsokis%2Fvuex-cli-webpack","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsokis%2Fvuex-cli-webpack/lists"}