Separing frontend and backend code in different folders.

This commit is contained in:
John Livingston
2021-04-07 15:53:22 +02:00
parent 8f79f813c7
commit dca4e67b35
3 changed files with 13 additions and 11 deletions

View File

@ -10,7 +10,7 @@ const clientFiles = [
let config = clientFiles.map(f => ({
entry: "./client/" + f,
output: {
path: path.resolve(__dirname, "./dist"),
path: path.resolve(__dirname, "./dist/client"),
filename: "./" + f,
library: "script",
libraryTarget: "var"
@ -21,7 +21,7 @@ let config = clientFiles.map(f => ({
config.push({
entry: "./conversejs/builtin.js",
output: {
path: path.resolve(__dirname, "./dist/static"),
path: path.resolve(__dirname, "./dist/client/static"),
filename: "./builtin.js"
}
})