pd4d10 / console-importer

Easily import JS and CSS resources from Chrome console.
https://chrome.google.com/webstore/detail/console-importer/hgajpakhafplebkdljleajgbpdmplhie
MIT License
848 stars 57 forks source link

Import local ES6 module #1

Open andylima opened 7 years ago

andylima commented 7 years ago

The ability to import our own local ES6 modules would be very useful. :)

andylima commented 7 years ago

...Or can we already do this?

pd4d10 commented 7 years ago

Nice idea.

Actually, when $i is called, this extension create a script tag (for JS) or a link tag (for CSS), and set its src property. So it seems not work to import local modules in this way. Maybe I could do some research for it.

If you have good way to do this, pull request is very welcome :)

andylima commented 7 years ago

I think that for HTTPS sites script injection (from a Chrome extension) with local script files being injected requires a local HTTPS server running... so maybe this isn't possible.