jedireza / aqua

:bulb: A website and user system starter
https://jedireza.github.io/aqua/
MIT License
1.38k stars 356 forks source link

Common chunk core.min.js map file not found #192

Closed henriquesa closed 7 years ago

henriquesa commented 7 years ago

On a fresh install, right after the postinstall build, core.min.js points its source map file to sourceMappingURL=aqua/core.map.js, when it's generated at pages/core.map.js. This is because of the webpack output option sourceMapFilename: '[name].map.js', where name is not the full filename.

There are two quick solutions, changing sourceMapFilename: '[name].map.js' to sourceMapFilename: '[file].map.js', or removing the line entirely, which I believe is the most appropriate option, because the default is [file].map and map files should be .map.

I'm able to open a PR for either option.

jedireza commented 7 years ago

Thanks for reporting and for the future PR. Choose the solution you think is best.