absolvent / gore-gulp

Simple way to run and maintain React.js projects without any configuration.
MIT License
1 stars 0 forks source link

AMD async modules loading #32

Open kl3ryk opened 9 years ago

kl3ryk commented 9 years ago

If you are using AMD loading (js base directory is example.com/assets):

require(["jquery"], function ($) {
});

there is problem with async loading. File compiled by webpack is loading async js files from wrong directory - instead of example.com/assets/jquery.js i got example.com/jquery.js. There should be configuration option for base async files.

mcharytoniuk commented 9 years ago

Can be done with "output.publicPath".