首页 > 代码库 > ionic添加scss
ionic添加scss
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=http://www.mamicode.com/"lib/ionic/css/ionic.css" rel="stylesheet"> from the <head> of the root index.html file. 3. Remove <link href=http://www.mamicode.com/"css/style.css" rel="stylesheet"> from the <head> of the root index.html file. 4. Add <link href=http://www.mamicode.com/"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
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。