Skip to content

Instantly share code, notes, and snippets.

@latpaw
Last active December 23, 2016 06:51
Show Gist options
  • Save latpaw/d4170b58a307f8b2a059ae95afbaffe0 to your computer and use it in GitHub Desktop.
Save latpaw/d4170b58a307f8b2a059ae95afbaffe0 to your computer and use it in GitHub Desktop.
//fix the problem ,webpack + sourceMap backgound-image do not load
//replace the action in addStyles.js updateLink function
css = css.replace(/url\((?!data\:)/g,"url("+document.location.origin+"/")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment