javascript - How to edit relative path in css file with npm scripts? -
i'm using create-react-app
. after running npm run build
there 1 build folder generating. under folder there 1 minified css file. want edit file, when i'm running npm run build
. instead of
url(/static/media/fontawesome-webfont.674f50d2.eot)
i want should
url(../media/fontawesome-webfont.674f50d2.eot)
how npm scripts.
with create-react-app can modify final path of compiled scripts changing value of homepage in package.json unfortunally @ moment lastest version of create-react-app (1.0.11) can modify path before /static/ homepage property
so if modify homepage property "../" final path url(../static/media/fontawesome-webfont.674f50d2.eot)
Comments
Post a Comment