# mod **Repository Path**: dxhuii/mod ## Basic Information - **Project Name**: mod - **Description**: 模块化练习 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 0 - **Created**: 2017-12-20 - **Last Updated**: 2020-12-18 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 静态文件模块化 - 需要[node](https://nodejs.org) 6.11.x 及以上 - 需要[npm](https://npm.taobao.org/) 3.10.x 及以上 - 需要[yarn](https://yarnpkg.com/) 1.3.x 及以上 - 需要 MAC,windows 暂时没有测试 ## 依赖 - [ES6](http://es6.ruanyifeng.com) + support [babel](https://babeljs.io) - css3 [sass](http://sass-lang.com/), [autoprefixer](https://autoprefixer.github.io/) - webpack [link](https://webpack.js.org) ## 启动 - 克隆项目 `git clone https://gitee.com/dxhuii/mod.git` - 安装开发依赖 `npm install` or `yarn install` ## 打包 - `npm run more` or `yarn more` 打包压缩,生产环境中使用 - `npm run alioss` 上传到阿里云 OSS - 修改文件`node_modules/aliyunoss-webpack-plugin/index.js`里的`var ossFileName = generateObjectPath(fileName, file);`为`var ossFileName = generateObjectPath(file, fileName);` ## 标准 **[Aribnb react 编码规范](https://github.com/airbnb/javascript/tree/master/react)** - 模态框 http://www.jq22.com/demo/jqueryct201906052340/