mad formatting

This commit is contained in:
Christopher committed 2021-03-02 20:41:25 +01:00
1 parent 6777498bcc
commit 046447b0fb
74 files changed
+329 -309

No files matched your search

+20 -20
View File
@@ -1,28 +1,28 @@
const webpack = require("webpack");
const path = require("path");
const RemovePlugin = require("remove-files-webpack-plugin");
const webpack = require('webpack');
const path = require('path');
const RemovePlugin = require('remove-files-webpack-plugin');
const buildPath = path.resolve(__dirname, "dist");
const buildPath = path.resolve(__dirname, 'dist');
const server = {
entry: "./server/server.ts",
entry: './server/server.ts',
module: {
rules: [
{
test: /\.tsx?$/,
use: ["ts-loader"],
use: ['ts-loader'],
exclude: /node_modules/,
},
],
},
plugins: [
new webpack.DefinePlugin({ "global.GENTLY": false }),
new webpack.DefinePlugin({ 'global.GENTLY': false }),
new RemovePlugin({
before: {
include: [path.resolve(buildPath, "server")],
include: [path.resolve(buildPath, 'server')],
},
watch: {
include: [path.resolve(buildPath, "server")],
include: [path.resolve(buildPath, 'server')],
},
}),
],
@@ -30,22 +30,22 @@ const server = {
minimize: true,
},
resolve: {
extensions: [".tsx", ".ts", ".js"],
extensions: ['.tsx', '.ts', '.js'],
},
output: {
filename: "[contenthash].server.js",
path: path.resolve(buildPath, "server"),
filename: '[contenthash].server.js',
path: path.resolve(buildPath, 'server'),
},
target: "node",
target: 'node',
};
const client = {
entry: "./client/client.ts",
entry: './client/client.ts',
module: {
rules: [
{
test: /\.tsx?$/,
use: ["ts-loader"],
use: ['ts-loader'],
exclude: /node_modules/,
},
],
@@ -53,10 +53,10 @@ const client = {
plugins: [
new RemovePlugin({
before: {
include: [path.resolve(buildPath, "client")],
include: [path.resolve(buildPath, 'client')],
},
watch: {
include: [path.resolve(buildPath, "client")],
include: [path.resolve(buildPath, 'client')],
},
}),
],
@@ -64,11 +64,11 @@ const client = {
minimize: true,
},
resolve: {
extensions: [".tsx", ".ts", ".js"],
extensions: ['.tsx', '.ts', '.js'],
},
output: {
filename: "[contenthash].client.js",
path: path.resolve(buildPath, "client"),
filename: '[contenthash].client.js',
path: path.resolve(buildPath, 'client'),
},
};