-
-
Notifications
You must be signed in to change notification settings - Fork 9.1k
Closed
Description
I'm submitting a bug report
Webpack version: 1.13.1
Please tell us about your environment: Ubuntu 14.04
Current behavior:
Entrypoint file:
__webpack_public_path__ = SETTINGS.STATIC_URL + 'build/'
require('navbar/navbar.es6')
If I use import 'navbar/navbar.es6'
instead, the images that are loaded inside of navbar.es6
(via import imageName from 'img/filepath.png'
) do not have the public_path prepended to them. When I use the above require('navbar/navbar.es6')
, it works fine. CommonJS imports work but ES6-style ones do not when dynamically setting __webpack_public_path__
Expected/desired behavior:
There should be no difference between ES6 and CommonJS modules
- Browser: Chrome 50
- Language: [ES6/7]