mirror of
https://github.com/sasjs/server.git
synced 2025-12-10 11:24:35 +00:00
* chore: fix vulnerabilities and remove unused or redundant dependencies * chore: Added start script and vulnerabilities screenshot * fix: quick fix * fix: converted to typescript + bugs removed Co-authored-by: jahanzaibrao-dev <jahanzaib@tetrahex.com> Co-authored-by: Saad Jutt <ihsan.distranger@gmail.com>
29 lines
696 B
TypeScript
29 lines
696 B
TypeScript
import path from 'path'
|
|
import { Configuration as WebpackConfiguration } from 'webpack'
|
|
import { Configuration as WebpackDevServerConfiguration } from 'webpack-dev-server'
|
|
import { merge } from 'webpack-merge'
|
|
|
|
import common from './webpack.common'
|
|
|
|
interface Configuration extends WebpackConfiguration {
|
|
devServer?: WebpackDevServerConfiguration
|
|
}
|
|
|
|
const devConfig: Configuration = merge(common, {
|
|
mode: 'development',
|
|
output: {
|
|
path: path.join(__dirname, 'build'),
|
|
filename: 'index.bundle.js',
|
|
publicPath: '/'
|
|
},
|
|
devServer: {
|
|
static: {
|
|
directory: path.join(__dirname, 'build')
|
|
},
|
|
historyApiFallback: true,
|
|
port: 3000
|
|
}
|
|
})
|
|
|
|
export default devConfig
|