19 Star 91 Fork 27

蕉zisuzz/Nest-Web

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
webpack.config.js 852 Bytes
一键复制 编辑 原始数据 按行查看 历史
蕉zisuzz 提交于 2019-10-30 12:33 +08:00 . re
const webpack = require('webpack');
const path = require('path');
const nodeExternals = require('webpack-node-externals');
module.exports = {
entry: ['webpack/hot/poll?1000', './src/main.hmr.ts'],
watch: true,
target: 'node',
externals: [
nodeExternals({
whitelist: ['webpack/hot/poll?1000'],
}),
],
module: {
rules: [
{
test: /\.tsx?$/,
use: 'ts-loader',
exclude: /node_modules/,
},
],
},
mode: "development",
resolve: {
modules: [
"node_modules",
path.resolve(__dirname, "app")
],
extensions: ['.tsx', '.ts', '.js'],
alias: {
'code':path.resolve(__dirname,'src/support/code'),
}
},
plugins: [
new webpack.HotModuleReplacementPlugin(),
],
output: {
path: path.join(__dirname, 'dist'),
filename: 'server.js',
},
};
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
TypeScript
1
https://gitee.com/zisuzz/Nest-Web.git
git@gitee.com:zisuzz/Nest-Web.git
zisuzz
Nest-Web
Nest-Web
master

搜索帮助