简化模块加载

deprecated hydro-build
This commit is contained in:
undefined committed 2020-07-15 20:46:45 +08:00
1 parent 8aef05a375
commit 8f6968bbbd
41 files changed
+1361 -1957

No files matched your search

+2 -3
View File
@@ -2,17 +2,16 @@
const path = require('path');
const webpack = require('webpack');
const FriendlyErrorsPlugin = require('friendly-errors-webpack-plugin');
const { root } = require('./utils');
const build = async (type) => {
const config = {
mode: type,
entry: {
app: root('hydro/loader.ts'),
app: path.resolve(__dirname, '..', 'hydro', 'loader.ts'),
},
output: {
filename: '[name].js',
path: root('.build'),
path: path.resolve(__dirname, '..', '.build'),
},
target: 'node',
module: {