/tupu-frontend

tupu-frontend

Primary LanguageCSS

tupu-frontend-next

Vue重构tupu前端。工具链:ES6/Less/Sass/Compass/Webpack/Grunt

#步骤

  1. 使用到Sass + Compass,需Ruby运行环境,请先安装Ruby,版本不能低于2。Ruby官网Windows下Ruby安装包

  2. 运行gem install compass

  3. 确保安装Node.js,若未安装,请前往Node.js官网下载安装包。

  4. 确保安装grunt-cli,若未安装,请运行npm install grunt-cli -g

  5. 切换到项目根目录,运行npm install下载依赖模块。

  6. 本地开发环境:运行grunt local;生成测试开发环境文件 :运行grunt dev;生成生产环境文件:运行grunt product

#友情提醒

  1. 微信jsdkjweixin.js使用Webpack中引入时会报错。本次解决办法是修改源码中thiswindow,问题详细描述以及解决:使用vue cli 构建的项目,现在需要使用微信js sdk,如何使用when using both 'babel-loader' and 'imports-loader', this=>window will not work