Skip to content

Instantly share code, notes, and snippets.

@fakiolinho
Last active March 8, 2018 11:18
Show Gist options
  • Save fakiolinho/2deabeadc86c8dd0d3f9e935cfe4e5ed to your computer and use it in GitHub Desktop.
Save fakiolinho/2deabeadc86c8dd0d3f9e935cfe4e5ed to your computer and use it in GitHub Desktop.
const { join } = require('path');
const merge = require('webpack-merge');
module.exports = merge(require('./webpack.base.config'), {
devtool: 'cheap-module-source-map',
module: {
rules: [
...
],
},
plugins: [
...
],
devServer: {
host: '0.0.0.0',
port: 3001,
contentBase: join(__dirname, '../build'),
historyApiFallback: false,
hot: true,
},
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment