Created
August 24, 2017 12:04
-
-
Save jinglemansweep/22a11efeb9d5ba41e08f2ecbeeb823bc to your computer and use it in GitHub Desktop.
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
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