Ruby on rails 4 当我们更改css或js文件时,是否每次都需要预编译资产?

Ruby on rails 4 当我们更改css或js文件时,是否每次都需要预编译资产?,ruby-on-rails-4,asset-pipeline,Ruby On Rails 4,Asset Pipeline,我有一个关于资产的基本问题 1. Is everytime need to precompile the asset when we change the css or js file. 2. When pre-compiling old css and js files servered or not? i have checked the local when pre-compiling no css loaded. 3.Is it necessary to precompile the

我有一个关于资产的基本问题

1. Is everytime need to precompile the asset when we change the css or js file.
2. When pre-compiling old css and js files  servered or not?
i have checked the local when pre-compiling no css loaded.
3.Is it necessary to precompile the asset in development mode to work in local.

我理解你的英语有些问题,但也许我理解你的要求

它的工作原理如下:

当您在本地机器上以开发模式工作并编辑样式表或Java脚本时,Rails和资产管道负责重新加载相关文件。不会发生预编译

当您部署到生产中的服务器时,
rakeassets:precompile
任务将为您创建所有资产文件,这样您就可以通过诸如apache之类的Web服务器为它们提供服务,rails不需要处理这些文件

我认为使用Rails4,预编译过程要快得多,因为它不会编译没有更改的文件,但我不能100%确定这一点