Ai
9 Star 93 Fork 8

Gitee 极速下载/wenyan-lang

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: https://github.com/LingDong-/wenyan-lang
克隆/下载
webpack.config.js 910 Bytes
一键复制 编辑 原始数据 按行查看 历史
antfu 提交于 2020-04-27 13:04 +08:00 . chore: move to new org @wenyan 
const webpack = require('webpack')
const { baseConfig, defaultPlugins, DtsBundlePlugin } = require('./webpack.base.config')
const Cli = {
...baseConfig(),
target: 'node',
entry: {
cli: './src/cli.ts',
},
plugins: [
...defaultPlugins(),
new webpack.BannerPlugin({
banner: '#!/usr/bin/env node',
raw: true,
}),
],
mode: "development",
optimization: {
minimize: false,
},
}
const Core = {
...baseConfig(),
entry: {
core: './src/parser.ts',
},
plugins: [
...defaultPlugins(),
new DtsBundlePlugin({
name: '@wenyan/core',
baseDir: 'typings/src',
main: 'typings/src/parser.d.ts',
out: '../../dist/core/index.d.ts',
})
]
}
Core.output.library = 'Wenyan'
const Utils = {
...baseConfig(),
entry: {
render: './src/render.ts',
runtime: './src/browser_runtime.ts',
}
}
module.exports = [Cli, Core, Utils]
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/mirrors/wenyan-lang.git
git@gitee.com:mirrors/wenyan-lang.git
mirrors
wenyan-lang
wenyan-lang
master

搜索帮助