私はCSSファイルにいくつかの低コード(ember-cli-less経由で)を構築しようとしています。Ember.js:node.jsにオプションを渡す
1)https://almsaeedstudio.com/ AdminLTE lessファイル 2)ブートストラップの少ないファイル。
そして、私が得た:
⠸ Building
<--- Last few GCs --->
87632 ms: Scavenge 1403.1 (1458.1) -> 1403.1 (1458.1) MB, 92.0/0 ms (+ 19.3 ms in 1 steps since last GC) [allocation failure] [incremental marking delaying mark-sweep].
90306 ms: Mark-sweep 1403.1 (1458.1) -> 1399.0 (1457.1) MB, 2674.4/0 ms (+ 1196.1 ms in 2698 steps since start of marking, biggest step 21.2 ms) [last resort gc].
93043 ms: Mark-sweep 1399.0 (1457.1) -> 1396.1 (1458.1) MB, 2737.2/0 ms [last resort gc].
<--- JS stacktrace --->
==== JS stack trace =========================================
Security context: 0x26d2e65b4629 <JS Object>
1: eval [/home/ofry/my-new-lk/node_modules/less/lib/less/tree/ruleset.js:~33] [pc=0x2f428a9933db] (this=0x26d2e6581591 <JS Object>,context=0x289d4931c589 <JS Object>)
2: eval [/home/ofry/my-new-lk/node_modules/less/lib/less/tree/ruleset.js:~33] [pc=0x2f428a992d84] (this=0x289d4931c7a1 <JS Object>,context=0x289d4931c589 <JS Object>)
3: evalCall [/home/ofry/my-new-lk/node_modules/less...
FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - process out of memory
は、だから私は何とか--max_old_space_size = big_number合格する必要がある場合に打ち上げ
ember build
私はこれをどのように行うことができますか?
UPDATE:使用しようとした :
lessOptions: {
paths: [
'app/styles/less',
'bower_components/bootstrap/less'
],
max_old_space_size: 8192
},
同じエラー:
⠧ Building
<--- Last few GCs --->
216135 ms: Scavenge 1401.6 (1458.1) -> 1401.6 (1458.1) MB, 78.7/0 ms (+ 3.0 ms in 1 steps since last GC) [allocation failure] [incremental marking delaying mark-sweep].
218646 ms: Mark-sweep 1401.6 (1458.1) -> 1401.2 (1458.1) MB, 2510.4/0 ms (+ 4.0 ms in 2 steps since start of marking, biggest step 3.0 ms) [last resort gc].
221062 ms: Mark-sweep 1401.2 (1458.1) -> 1400.3 (1458.1) MB, 2415.8/0 ms [last resort gc].
<--- JS stacktrace --->
==== JS stack trace =========================================
Security context: 0x62f3f2b4629 <JS Object>
1: eval [/home/ofry/my-new-lk/node_modules/less/lib/less/tree/ruleset.js:~33] [pc=0x3f6eb137cc4f] (this=0x25d46c7e8bd9 <JS Object>,context=0xe80f72a7819 <JS Object>)
2: eval [/home/ofry/my-new-lk/node_modules/less/lib/less/tree/ruleset.js:~33] [pc=0x3f6eb137ed67] (this=0xe80f72a7a31 <JS Object>,context=0xe80f72a7819 <JS Object>)
3: evalCall [/home/ofry/my-new-lk/node_modules/less/lib...
FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - process out of memory
更新#2。例を挙げてレポする リンク: https://github.com/ofry/test_ember_cli_less
を使用しますがlessOptionsに「max_old_space_size」を追加だけしてみてくださいましたか? –
は、使用しよう: 'lessOptions:{ パス:[ 'APP /スタイル/以下' 'bower_components /ストラップ/以下' ]、 max_old_space_size:8192 }、'。 –
に同じエラーが発生しました。 –