You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ bundle exec rails webpacker:install:vue
You need to enable unsafe-eval rule.
This can be donein Rails 5.2+ fordevelopment environmentin the CSP initializer
config/initializers/content_security_policy.rb with a snippet like this:
if Rails.env.development?
policy.script_src :self, :https, :unsafe_eval
else
policy.script_src :self, :https
end
production assets valid when unicorn is app and web servers
config/environments/production.rb
# Disable serving static files from the `/public` folder by default since# Apache or NGINX already handles this.# config.public_file_server.enabled = ENV['RAILS_SERVE_STATIC_FILES'].present?# https://qiita.com/y_minowa/items/5954907bb30c2ecb43f5# https://qiita.com/Yinaura/items/d7dc3daefb5825aba474config.public_file_server.enabled=true
yarn on development
To disable this check, please add `config.webpacker.check_yarn_integrity = false`
to your Rails development config file (config/environments/development.rb).