schovi / webpack-chrome-extension

Moved and redesigned into https://github.com/schovi/create-chrome-extension
MIT License
167 stars 27 forks source link

Update webpack and webpack-dev-server version #27

Closed NemoAlex closed 8 years ago

NemoAlex commented 8 years ago

Problem: //@ sourceURL and //@ sourceMapURL is deprecated Solution: upgrade webpack and webpack-dev-server to latest version.

schovi commented 8 years ago

@NemoAlex There is problem. Functionality of this environment dependent on webpack "hack".

Hack is nothing more, then dummy override 2 files inside node_modules/webpack

1) Reloading chrome extension when hot module is not available https://github.com/schovi/webpack-chrome-extension/blob/master/dev-env/override/template/JsonpMainTemplate.runtime.js

2) MOST IMPORTANT PART: run hot module updates in correct context of chrome extension and not page itself. https://github.com/schovi/webpack-chrome-extension/blob/master/dev-env/override/template/log-apply-results.js

It is few months since I tried to update webpack, but it failed, because I cant make it works again like that. I rename this issue to more related name and feel free to dig into that :)

schovi commented 8 years ago

Simply temporary soution. Filter console by regexp ^((?!sourceURL).)*$ :)

schovi commented 8 years ago

Solved with https://github.com/schovi/webpack-chrome-extension/commit/51a1b248afbea4d91638257e6c27ef8782107262