Skip to content

Instantly share code, notes, and snippets.

@jordaaash
Created April 8, 2015 13:30
Show Gist options
  • Save jordaaash/6475bc2e47d5527165c0 to your computer and use it in GitHub Desktop.
Save jordaaash/6475bc2e47d5527165c0 to your computer and use it in GitHub Desktop.
2hot2handle
config.devServer = {
contentBase: config.output.path,
filename: 'assets/scripts/application.js',
host: process.env.HOST,
hot: true,
inline: true,
port: process.env.HOT_PORT,
progress: true,
publicPath: config.output.publicPath,
stats: { colors: true },
proxy: [{
path: /^(?!.*\.hot-update\.js)(.*)$/,
target: 'http://' + process.env.HOST + ':' + process.env.PORT + '/'
}]
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment