Update 19.11.2022
This commit is contained in:
29
HTML/gcphone/resources/screenshot-basic/server.config.js
Normal file
29
HTML/gcphone/resources/screenshot-basic/server.config.js
Normal file
@@ -0,0 +1,29 @@
|
||||
const webpack = require('webpack');
|
||||
|
||||
module.exports = {
|
||||
entry: './src/server/server.ts',
|
||||
module: {
|
||||
rules: [
|
||||
{
|
||||
test: /\.tsx?$/,
|
||||
use: 'ts-loader',
|
||||
exclude: /node_modules/
|
||||
}
|
||||
]
|
||||
},
|
||||
// https://github.com/felixge/node-formidable/issues/337#issuecomment-153408479
|
||||
plugins: [
|
||||
new webpack.DefinePlugin({ "global.GENTLY": false })
|
||||
],
|
||||
optimization: {
|
||||
minimize: false
|
||||
},
|
||||
resolve: {
|
||||
extensions: [ '.tsx', '.ts', '.js' ]
|
||||
},
|
||||
output: {
|
||||
filename: 'server.js',
|
||||
path: __dirname + '/dist/'
|
||||
},
|
||||
target: 'node'
|
||||
};
|
||||
Reference in New Issue
Block a user