另外都source code 都update 返package.json , 加返compile SASS 落去start command 道
同埋加左小小inline-comment
![]()
BTW, suggest你打番句command: <em>npm install compass --save</em>
唔係就npm run start時會搵唔到compass呢個module!
compass 要用ruby 個gem 黎裝![]()
我研究下npm 有冇咩alternative 既package 先我主要貪compass 可以幫我將d css 夾返埋做一個file
唔駛, npm registry有, 照打我句野就OK!
Added
Great! BTW, 你遲啲會唔會考慮用webpack 2將所有front-end stack(angular2, typescript, sass等) 撈埋一碟集中處理?![]()
(P.S. 雖然webpack多數見人用係React, 好少見用落Angular度!)
會, 我有search 過![]()
而家個deployment 好趕客要人手連埋佢起node_modules 果堆dependency 放埋上去
![]()
用左webpack 可以將堆typescript , sass 變晒一個file
理論上連compass 都唔洗用![]()
有冇實戰經驗豐富既巴打指點下NG2 唔用webpack standard 係點做![]()
我上網搵好多時都係work around 既方法噤
我諗你直接去GitHub(https://github.com/search?utf8=%E2%9C%93&q=&type=Repositories&ref=searchresults)度search下人地有冇類似既projects做緊可能仲好啲!
成功轉左要改Code 先轉倒做WebPack, 點解Angular 個Tutorial 唔直接用WebPack

雖然npm (run) start 到最後, 出咗3個errors:
ERROR in [at-loader] node_modules/@types/jasmine/index.d.ts:39:52
TS1005: '=' expected.
ERROR in [at-loader] node_modules/@types/jasmine/index.d.ts:39:38
TS2371: A parameter initializer is only allowed in a function or constructor implementation.
ERROR in [at-loader] node_modules/@types/jasmine/index.d.ts:39:46
TS2304: Cannot find name 'keyof'.
似係@types/jasmine呢個library本身有bugs!

Anyway, 都算成功run到無乜大問題!

(P.S. Platform: Ubuntu + node 7.2.0 + npm 4.3.0)