新手问题 为何 rails 需要 install nodejs 才能跑?

destinyjingkun · January 10, 2017 · Last by nine replied at January 10, 2017 · 1688 hits

新手,为何需要 nodejs 才能够跑?

因为要用 uglify.js 压缩 js 代码

# gem 'therubyracer', platforms: :ruby

打开这一行不用安装 nodejs 不过要编译 libv8,很麻烦。 所以还是装 nodejs 吧

You need to Sign in before reply, if you don't have an account, please Sign up first.