mirror of
https://github.com/stashapp/stash.git
synced 2025-12-18 04:44:37 +03:00
Eject create-react-app
This commit is contained in:
24
ui/v2.5/config/webpack.dev.js
Normal file
24
ui/v2.5/config/webpack.dev.js
Normal 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',
|
||||
});
|
||||
Reference in New Issue
Block a user