标签:href find targe logs use running for har app
需要有Node、NPM、Grunt、Ruby
访问http://rubyinstaller.org/downloads/archives
验证
node -v npm -v ruby -v
npm install -g grunt-cli
npm install grunt-contrib-sass grunt-contrib-uglify grunt-contrib-watch --save-dev
注:--save-dev自动完善package.json
grunt-contrib-sass #sass编译插件
grunt-contrib-uglify #js压缩插件
grunt-contrib-watch #监控插件
Running "sass:dist" (sass) task Warning: You need to have Ruby and Sass installed and in your PATH for this task to work. More info: https://github.com/gruntjs/grunt-contrib-sass Use --force to continue.
原因说明:没有安装ruby环境,并且需要安装一下sass,安装sass过程如下
gem install sass
--验证 sass -v sass -h --安装Sass npm install grunt-contrib-sass --save-dev --执行编译命令 grunt sass
Running "sass:build" (sass) task Error: Invalid GBK character "\xE7" on line 2 of app/src/sass/style.scss Use --trace for backtrace. Warning: Exited with error code 13 Use --force to continue.
检查了好久才发现 scss编译不支持中文字体,进入到ruby安装目录
C:\Ruby23-x64\lib\ruby\gems\2.3.0\gems\sass-3.4.23\lib\sass
修改 engine.rb?文件?
在require 最下面 加入以下代码 即可解决
Encoding.default_external = Encoding.find(‘utf-8‘)
标签:href find targe logs use running for har app
原文地址:http://www.cnblogs.com/nick4/p/6391043.html