Skip to content

Rulexec/mini-css-extract-plugin

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Demo of webpack#531

  • npm ci
  • npm run start
  • Go to http://localhost:8080/
  • Edit src/style.css
  • Exception should happen:
Uncaught TypeError: Cannot read property 'some' of null
    at getReloadUrl (hotModuleReplacement.js:129)
    at eval (hotModuleReplacement.js:145)
    at NodeList.forEach (<anonymous>)
    at reloadStyle (hotModuleReplacement.js:140)
    at update (hotModuleReplacement.js:194)
    at functionCall (hotModuleReplacement.js:24)

Why?

  • document.currentScript is absent due to preload
  • Last script is not our script, because page has <script> without src in the end of page
  • getCurrentScriptUrl returns null

About

Lightweight CSS extraction plugin

Resources

License

Contributing

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 88.2%
  • CSS 9.3%
  • HTML 2.5%