feat: add delete route
This commit is contained in:
@@ -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,
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user