schovi/webpack-chrome-extension

Update webpack and webpack-dev-server version

Closed this issue · 3 comments

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

@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 :)

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

Solved with 51a1b24