首页 > Web开发 > 详细

ionic添加scss

时间:2016-11-19 20:34:32      阅读:350      评论:0      收藏:0      [点我收藏+]
Setup Sass Automatically

在进行以下操作之前要确保node比较新,以便正确安装node-sass 或
改用cnpm install node-sass安装(淘宝源)
$ ionic setup sass
Setup Sass Manually
在执行npm install之前确保执行零npm install -g 先安装全局,再安装本地
  1. Run npm install from the working directory of an Ionic project. This will install gulp.js and a few handy tasks, such as gulp-sass andgulp-minify-css.
  2. Remove <link href="lib/ionic/css/ionic.css" rel="stylesheet"> from the <head> of the root index.html file.
  3. Remove <link href="css/style.css" rel="stylesheet"> from the <head> of the root index.html file.
  4. Add <link href="css/ionic.app.css" rel="stylesheet"> to the <head> of the root index.html file.
  5. In the ionic.project file, add the JavaScript property "gulpStartupTasks": ["sass", "watch"] (this can also be customized to whatever gulp tasks you’d like).

 

ionic添加scss

原文:http://www.cnblogs.com/znsongshu/p/6081154.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!