Created
March 2, 2017 19:44
-
-
Save mkalish/c1acffbe2ec349efbbabb076f346d297 to your computer and use it in GitHub Desktop.
This configuration will not trigger a refresh when the hot update is applied.
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: { | |
hot: ['react-hot-loader/patch', 'webpack-dev-server/client?https://localhost:3000', 'webpack/hot/only-dev-server'], | |
main: 'src/index.js' | |
}, | |
output: { | |
path: __dirname + '/dist/assets', | |
filename: '[hash]-[name].js', | |
library: 'ReactApp' | |
}, | |
plugins: [ | |
new webpack.HotModuleReplacementPlugin(), | |
new HtmlWebpackPlugin({ | |
chunks: ['hot', 'main'], | |
template: 'local-index.hbs' | |
}), | |
new DashboardPlugin(), | |
new webpack.EnvironmentPlugin({ | |
NODE_ENV: 'development', | |
HOST_NAME: `${hostname}` | |
}) | |
], | |
devServer: { | |
colors: true, | |
https: true, | |
quiet: false, | |
port: 3000, | |
hot: true, | |
stats: {colors: true}, | |
proxy: useApiKey ? proxyApiConfig : proxyLoginConfig | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment