B
B
Bogdan2018-03-21 20:06:59
Vue.js
Bogdan, 2018-03-21 20:06:59

Variable value depending on the mode?

Hello. And do not tell me how to do it correctly so that production has its own variable value, and dev has its own. And it’s better that a variable is not built in the production bundle. I'm using default webpack from @cli 3.
Thanks.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
L
lavezzi1, 2018-03-21
@lavezzi1

so that production has its own variable value

What kind of nonsense?

R
Roman Kitaev, 2018-03-21
@deliro

DefinePlugin makes it possible to pass variables from webpack to the global scope

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question