码迷,mamicode.com
首页 > Web开发 > 详细

ionic添加scss

时间:2016-11-19 20:35:02      阅读:194      评论:0      收藏:0      [点我收藏+]

标签:dir   auto   link   sass安装   html   sas   tor   mini   rip   

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

标签:dir   auto   link   sass安装   html   sas   tor   mini   rip   

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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!