Skip to content

Instantly share code, notes, and snippets.

@jinglemansweep
Created August 24, 2017 12:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jinglemansweep/22a11efeb9d5ba41e08f2ecbeeb823bc to your computer and use it in GitHub Desktop.
Save jinglemansweep/22a11efeb9d5ba41e08f2ecbeeb823bc to your computer and use it in GitHub Desktop.
const path = require('path');
const webpack = require('webpack');
const Merge = require('webpack-merge');
const CommonConfig = require('./webpack.common.js');
module.exports = Merge(CommonConfig, {
plugins: [
new webpack.HotModuleReplacementPlugin({
multiStep: false // https://github.com/jantimon/html-webpack-plugin/issues/533
})
],
devServer: {
hot: true,
color: true,
contentBase: path.resolve(__dirname, 'dist'),
publicPath: '/',
port: 3000,
proxy: {
'^/api/*': {
target: 'http://localhost:8080/api/',
secure: false
}
}
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment