Created
July 30, 2015 16:32
-
-
Save stickel/06e33bea30817ec974b2 to your computer and use it in GitHub Desktop.
webpack/hot/dev-server and webpack working in a node angular app
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = { | |
entry: { | |
app: ['webpack/hot/dev-server', './app/app'], // => webpack-dev-server will work but webpack build won't | |
app: ['./app/app', 'webpack/hot/dev-server'], // => both webpack-dev-server AND webpack build will work | |
vendor: ['./app/vendor'], | |
components: ['./app/components/home'] | |
} | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Line 3 keeps returning an error that the
angular.module
cannot be found. Likely because of this error happening beforeapp/app.js
is loaded:In line 4 the
Hot Module Replacement
error still happens, but it's afterapp/app.js
has loaded and doesn't matter (at least onlocalhost
).