schovi / webpack-chrome-extension

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

production build doesn't work #9

Closed rstormsf closed 9 years ago

rstormsf commented 9 years ago

chrome-extension://sdfsdff/newtab/newtab/index.js Failed to load resource: net::ERR_FILE_NOT_FOUND

schovi commented 9 years ago

Do you have public repo with that? Problem is obvious, but why it happened is another story :)

rstormsf commented 9 years ago

gulp -p and install it, I've tried to figure it out, :-( no luck.

MattSPalmer commented 9 years ago

See my pull request (#10), should address the issue. The relative path to index.js is currently incorrect in production builds.

schovi commented 9 years ago

Thanks to @MattSPalmer, we find the source of issue. Fixed with commit https://github.com/schovi/webpack-chrome-extension/commit/9ffe78cf13028b5d88e8442e3e8e1995856c6f62