膜拜了!
老師,你的經典臺詞不要太多!哈哈哈哈哈
雖然對你的英語發音略感有點暈
不過就你講得東東的還是非常喜歡的
老師,你的經典臺詞不要太多!哈哈哈哈哈
雖然對你的英語發音略感有點暈
不過就你講得東東的還是非常喜歡的
2018-01-21
好吧!看到后邊我才有了更為通透的結論!
一:在package.json下運行npm run xxx 依賴我們的包opn , 沒有這玩意怎么都跑不起來!所以。。。
1: npm install opn-cli --save-dev
2:"scripts": {
"opn": "opn \"http://www.taobao.com\""
},
3: npm run opn
二: 直接bash中跑!
1: npm install --global opn-cli
2: opn http://www.baidu.com
一:在package.json下運行npm run xxx 依賴我們的包opn , 沒有這玩意怎么都跑不起來!所以。。。
1: npm install opn-cli --save-dev
2:"scripts": {
"opn": "opn \"http://www.taobao.com\""
},
3: npm run opn
二: 直接bash中跑!
1: npm install --global opn-cli
2: opn http://www.baidu.com
2018-01-21
1:先安裝opn才跑得起哦! $ npm install --global opn-cli
2:gulpfile中: "scripts": {
"Hello": "opn \"http://www.baidu.com\""
}
3: npm run Hello
2:gulpfile中: "scripts": {
"Hello": "opn \"http://www.baidu.com\""
}
3: npm run Hello
2018-01-21
interlace 交錯顯示圖片,奇數行或偶數行下載顯示。下載速度加快一半!
progressive 循環漸進顯示圖片,較少斷片兒,提高用戶體驗!
progressive 循環漸進顯示圖片,較少斷片兒,提高用戶體驗!
2018-01-21
NPM注冊包: 1: 注冊npm賬號
2: npm adduser
3: npm publish https://github.com/....... (上傳到github后包的地址)
錯誤解決參考: https://www.jianshu.com/p/64a5869ea87b
2: npm adduser
3: npm publish https://github.com/....... (上傳到github后包的地址)
錯誤解決參考: https://www.jianshu.com/p/64a5869ea87b
2018-01-20
未修改前上傳步驟:
1: git add -A
2: git commit -m "finish"
3: git push origin master
修改后上傳步驟:
1: git add -A
2: git commit -m finish
3: git pull -rebase origin master // 代碼合并,沒有這步要報錯!
4: git push origin master
1: git add -A
2: git commit -m "finish"
3: git push origin master
修改后上傳步驟:
1: git add -A
2: git commit -m finish
3: git pull -rebase origin master // 代碼合并,沒有這步要報錯!
4: git push origin master
2018-01-20
grunt.task.run([
'clean:server', //清除.tmp臨時文件
'wiredep', // 使用grunt將bower依賴包注入到我們指定源碼中
'concurrent:server', //同時運行server目標,即運行sass:server,編譯sass生成css
'postcss', //為css自動添加瀏覽器私有前綴
'browserSync:livereload', //連接服務器,瀏覽器與服務器同步
'watch' //每當文件被添加,更改或刪除時運行預定義的任務
]);
'clean:server', //清除.tmp臨時文件
'wiredep', // 使用grunt將bower依賴包注入到我們指定源碼中
'concurrent:server', //同時運行server目標,即運行sass:server,編譯sass生成css
'postcss', //為css自動添加瀏覽器私有前綴
'browserSync:livereload', //連接服務器,瀏覽器與服務器同步
'watch' //每當文件被添加,更改或刪除時運行預定義的任務
]);
2018-01-18
//3:加載所有的grunt-contrib-xx項
require("load-grunt-tasks")(grunt)
require("load-grunt-tasks")(grunt)
2018-01-18