Skip to content

Instantly share code, notes, and snippets.

@AdamRamberg
Created July 21, 2018 16:11
Show Gist options
  • Save AdamRamberg/6362d859c2f17063fc38dd3d48a5442b to your computer and use it in GitHub Desktop.
Save AdamRamberg/6362d859c2f17063fc38dd3d48a5442b to your computer and use it in GitHub Desktop.
react-from-scratch webpack.prod.js
const path = require('path');
const plugins = [];
module.exports = require('./webpack.base')({
mode: 'production',
devServer: {
port: 3000,
contentBase: path.join(process.cwd(), 'dist/'),
},
plugins,
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment