static files to build directory with Webpack

Viewed 25

I am compiling webpack and the paths in index.html are as follows

/static/js/main.7c2dc3d5.js
/static/css/main.4a59e0ef.css

My server can't find these files, but when I put a dot in front of /static, everything works fine

./static/js/main.7c2dc3d5.js
./static/css/main.4a59e0ef.css

Same problem with css icons/fonts by default it puts them as /static/media/ and the icons don't work until I put ../../static/media/ The bottom line is .... where can I edit these paths or who met with the same problem ???

0 Answers
Related