LoginSignup
0
0

More than 5 years have passed since last update.

メモ:Rails で置きたいところに node_modeule を置きたい

Posted at

前提

プロジェクト直下に node_modules とかいう子がいるのが嫌
えいって vendor/assets 以下とかに移したら scss プリコンパイルしようとしたときにこんな↓エラーがでる。

BrowserifyRails::BrowserifyError

対処法

application.rb に一行追加

config.assets.paths << Rails.root.join('vendor', 'assets', 'node_modules')

こんなのに1時間近くはまりました。死にます。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0