mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 22:16:40 +00:00
mad formatting
This commit is contained in:
1 parent
6777498bcc
commit
046447b0fb
74 files changed
+329
-309
No files matched your search
+20
-20
@@ -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'),
|
||||
},
|
||||
};
|
||||
|
||||
|
||||
Reference in new issue
Block a user