mirror of
https://github.com/sasjs/server.git
synced 2026-01-09 23:40:06 +00:00
Fixed vulnerabilities and remove unused or redundant dependencies (#55)
* 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>
This commit is contained in:
28
web/webpack.dev.ts
Normal file
28
web/webpack.dev.ts
Normal file
@@ -0,0 +1,28 @@
|
||||
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
|
||||
Reference in New Issue
Block a user