werks
This commit is contained in:
+3
-30
@@ -3,39 +3,12 @@ const path = require('path');
|
||||
const frontendConf = {
|
||||
mode: 'production',
|
||||
target: "web",
|
||||
entry: path.resolve(__dirname, 'Frontend.ts'),
|
||||
entry: path.resolve(__dirname, '..', 'js', 'src', 'Frontend.js'),
|
||||
output: {
|
||||
path: path.resolve(__dirname, '..'),
|
||||
path: path.resolve(__dirname, '..', 'js', 'src'),
|
||||
filename: "Frontend.js",
|
||||
libraryTarget: 'commonjs',
|
||||
},
|
||||
module: {
|
||||
rules: [
|
||||
{ test: /\.ts?$/, loader: "ts-loader" }
|
||||
]
|
||||
},
|
||||
resolve: {
|
||||
extensions: [".ts", ".tsx", ".js"]
|
||||
},
|
||||
optimization: {
|
||||
minimize: true,
|
||||
},
|
||||
}
|
||||
|
||||
const backendConf = {
|
||||
mode: 'production',
|
||||
target: "node",
|
||||
entry: path.resolve(__dirname, 'Backend.ts'),
|
||||
output: {
|
||||
path: path.resolve(__dirname, '..'),
|
||||
filename: "Backend.js",
|
||||
libraryTarget: 'commonjs'
|
||||
},
|
||||
module: {
|
||||
rules: [
|
||||
{ test: /\.ts?$/, loader: "ts-loader" }
|
||||
]
|
||||
},
|
||||
resolve: {
|
||||
extensions: [".ts", ".tsx", ".js"]
|
||||
},
|
||||
@@ -44,4 +17,4 @@ const backendConf = {
|
||||
},
|
||||
}
|
||||
|
||||
module.exports = [backendConf, frontendConf]
|
||||
module.exports = [frontendConf]
|
||||
|
||||
Reference in New Issue
Block a user