11 Star 91 Fork 8

Gitee 极速下载 / wenyan-lang

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: https://github.com/LingDong-/wenyan-lang
克隆/下载
webpack.site.config.js 823 Bytes
一键复制 编辑 原始数据 按行查看 历史
const webpack = require('webpack')
const path = require('path')
const { baseConfig } = require('./webpack.base.config')
const makeConfig = (entry, filename, entryName) => {
const config = {
...baseConfig(),
target: 'node',
entry: entry,
mode: "development",
optimization: {
minimize: false,
},
}
config.output.filename = filename
config.output.path = path.resolve(__dirname, 'static')
config.output.library = entryName
return config
}
module.exports = [
makeConfig('./src/parser.ts', 'dist/core.js', 'Wenyan'),
makeConfig('./src/execute.ts', 'dist/execute.js', 'Wenyan'),
makeConfig('./tools/examples.js', 'dist/examples.js', 'Examples'),
makeConfig('./src/highlight.js', 'dist/highlight.js', 'Highlighter'),
makeConfig('./src/render.ts', 'dist/render.js', 'Render'),
]
JavaScript
1
https://gitee.com/mirrors/wenyan-lang.git
git@gitee.com:mirrors/wenyan-lang.git
mirrors
wenyan-lang
wenyan-lang
master

搜索帮助