We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hello,
In my entry(main.js) file I have set __webpack_public_path__ at the first line as below
__webpack_public_path__
__webpack_public_path__ = 'http://some.cdn.com/some'
but while import images it just return the name
import SomeFriend from '../../images/some-friend'; (the above import is done in b.js which will be imported in main.js)
import SomeFriend from '../../images/some-friend';
I even tried it setting next to the import
__webpack_public_path__ = 'http://some.cdn.com/some' import SomeFriend from '../../images/some-friend';
when I do console.log(SomeFriend) it returns the file name as some-friend.jpg
Need experts advice. How to set __webpack_public_path__ so that all my image will be loaded from the give location.
Thanks & Regards Adi
The text was updated successfully, but these errors were encountered:
import is hoisted, so it always runs before the code inside of your module.
import
You probably have the use require in the entry point.
require
Sorry, something went wrong.
Great it works, Thanks quick response.
No branches or pull requests
Hello,
In my entry(main.js) file I have set
__webpack_public_path__
at the first line as below__webpack_public_path__ = 'http://some.cdn.com/some'
but while import images it just return the name
import SomeFriend from '../../images/some-friend';
(the above import is done in b.js which will be imported in main.js)
I even tried it setting next to the import
__webpack_public_path__ = 'http://some.cdn.com/some'
import SomeFriend from '../../images/some-friend';
when I do console.log(SomeFriend) it returns the file name as some-friend.jpg
Need experts advice. How to set
__webpack_public_path__
so that all my image will be loaded from the give location.Thanks & Regards
Adi
The text was updated successfully, but these errors were encountered: