How about creating a RAMDisk and hardlinking your project tmp folder to it? In Windows this can be done as follows:
Create RAM DISK with imdisk
mklink /j "C:\project\tmp\" "H:\ember-tmp" where C:\project is your local project folder and H: is your RAM Disk.
I'm afraid I don't know the Linux equivalents but it should be easy enough to find. Apparently this can roughly halve your build times with no chance of losing data. Information sourced from https://emberjs-developer.quora.com/How-to-make-Ember-js-CLI-ember-s-32-times-faster and kudos to Stefan Penner for the suggestion. Note the link folder MUST already exist before you run mklink otherwise you get the misleading message "Local volumes are required to complete the operation" and the link destination (junction folder) MUST NOT exist otherwise you get the message "Cannot create a file when that file already exists".
3条答案
按热度按时间ar7v8xwq1#
没有。没有人回答,
ember-cli
构建的帮助也没有显示该参数。hzbexzde2#
How about creating a RAMDisk and hardlinking your project tmp folder to it? In Windows this can be done as follows:
imdisk
mklink /j "C:\project\tmp\" "H:\ember-tmp"
whereC:\project
is your local project folder and H: is your RAM Disk.I'm afraid I don't know the Linux equivalents but it should be easy enough to find. Apparently this can roughly halve your build times with no chance of losing data.
Information sourced from https://emberjs-developer.quora.com/How-to-make-Ember-js-CLI-ember-s-32-times-faster and kudos to Stefan Penner for the suggestion.
Note the link folder MUST already exist before you run
mklink
otherwise you get the misleading message "Local volumes are required to complete the operation" and the link destination (junction folder) MUST NOT exist otherwise you get the message "Cannot create a file when that file already exists".z8dt9xmd3#
请注意,从Ember 3.0开始,您现在可以通过执行以下操作来更改该高速缓存
这会将broccolli文件输出到您选择的路径。您需要自己在这个自定义路径上进行整理操作
更多信息https://github.com/stefanpenner/async-disk-cache/issues/35