0

I would like to do something similar like Rails.env.test? but withing Vue.js app which is setup via Rails & Webpacker.

How to do it?

2
  • Marked as a duplicate since Webpacker runs on Node.js. See vuejs.org/v2/guide/deployment.html Commented Sep 27, 2017 at 16:47
  • process.env.NODE_ENV worked. Commented Oct 6, 2017 at 17:48

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.