Eject create-react-app

This commit is contained in:
Infinite
2020-01-24 12:59:37 +01:00
parent 95bedc77fe
commit 1928f09dcf
18 changed files with 2608 additions and 2387 deletions

View File

@@ -0,0 +1,24 @@
// development config
require('dotenv').config();
const merge = require('webpack-merge');
const commonConfig = require('./webpack.common');
module.exports = merge(commonConfig, {
mode: 'development',
entry: [
'./src/index.tsx' // the entry point of our app
],
devServer: {
host: '0.0.0.0',
hot: true, // enable HMR on the server host: '0.0.0.0',
port: process.env.PORT,
historyApiFallback: true,
stats: {
assets: true,
builtAt: true,
modules: false,
children: false
}
},
devtool: 'eval-source-map',
});