K
K
Kirill Ushakov2018-07-02 11:13:17
Building projects
Kirill Ushakov, 2018-07-02 11:13:17

webpack. Different paths in collected files?

I'm using vue-cli webpack
C webpack just started to figure it out, so I don't even know how to google it.
How to set up webpack so that the run devoutput run buildfiles have different paths to resources.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Anubis, 2018-07-02
@Anubis

As noted above, the best way is to pass the desired values ​​through env variables. If --env does not suit you, I advise you to use cross-env (look at npm) so that it works equally on Windows and *nix.

A
ar5, 2018-07-03
@ar5

In general, this is set through a proxy server (downloaded from webpack), or make a file where NODE_ENV is defined and from this use the correct url

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question