You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 9, 2020. It is now read-only.
Repository navigation
This repository was archived by the owner on Oct 9, 2020. It is now read-only.
How to renormalize sources in sourcemaps when building #822
All the sources in the generated sourceMap start as ..\src\*. I would like to normalize these paths to get rid of ..\src portion, because des/ becomes its own independent package for distribution (I copy package.json and modify main; this is in a nwjs env). For example, Uglify offers the base option for sourceMaps. I cannot see an equivalent option here (I have tinkered with baseURL to no avail)??
The trouble with that is (it was the first idea I had as well) that I cannot replace bootstrap.js with itself. If I use another name, then I have to rewrite my index.html to modifying the script tag to point to this new name. Right now I can copy the index.html from src to des. If I rename and copy this file instead, the reference in the map file has a different name, which means I have to rewrite that then
Also, it just feels wrong to build files in the src folder...
Activity
guybedford commentedon Jul 22, 2017
Maybe try building the application within the baseURL itself?
CxRes commentedon Jul 22, 2017
The trouble with that is (it was the first idea I had as well) that I cannot replace
bootstrap.jswith itself. If I use another name, then I have to rewrite myindex.htmlto modifying thescripttag to point to this new name. Right now I can copy theindex.htmlfromsrctodes. If I rename and copy this file instead, the reference in the map file has a different name, which means I have to rewrite that thenAlso, it just feels wrong to build files in the
srcfolder...