feat: add delete route

This commit is contained in:
2024-06-28 00:14:39 +08:00
parent c0a1460ad8
commit 60653a5ba8
16 changed files with 2760 additions and 200 deletions

View File

@@ -9,9 +9,7 @@ const ForkTsCheckerWebpackPlugin = require('fork-ts-checker-webpack-plugin');
const ENV = process.env.ENV;
const plugins = [
new ForkTsCheckerWebpackPlugin(),
];
const plugins = [new ForkTsCheckerWebpackPlugin()];
if (ENV === 'init') {
plugins.push(
new CopyPlugin({
@@ -19,6 +17,9 @@ if (ENV === 'init') {
}),
);
}
/**
* @type {webpack.Configuration}
*/
module.exports = {
mode: 'production',
entry: path.join(__dirname, './src/app.ts'),
@@ -56,16 +57,21 @@ module.exports = {
extensions: ['.ts', '.js'],
alias: {
'@': path.join(__dirname, './src'),
"hexoid": "hexoid/dist/index.js",
hexoid: 'hexoid/dist/index.js',
},
},
// externals: [
// externals: [
// // nodeExternals(),
// ],
externals: {
sequelize: 'commonjs sequelize',
'socket.io': 'commonjs socket.io',
'@babel/preset-env': 'commonjs @babel/preset-env',
'@babel/preset-typescript': 'commonjs @babel/preset-typescript',
},
plugins: [...plugins],
node: {},
stats: {
errorDetails: true,
},
};