当前仓库属于暂停状态,部分功能使用受限,详情请查阅 仓库状态说明
0 Star 24 Fork 13

jianghong/canvasPS图片编辑
暂停

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
webpack.config.js 854 Bytes
一键复制 编辑 原始数据 按行查看 历史
jianghong 提交于 2023-02-08 20:24 . 重新搞了一下
const path = require('path');
const HtmlWebpackPlugin = require('html-webpack-plugin');
const CopyPlugin = require('./webpack-copy')
module.exports = {
entry: {
ps: './src/CanvasPs.ts',
ui: {
dependOn: 'ps',
import: './src/ui/main.js',
asyncChunks:true
}
},
mode: 'production',
plugins: [
new HtmlWebpackPlugin({
template: './index.html',
}),
new CopyPlugin()
],
module: {
rules: [
{
test: /\.tsx?$/,
use: 'ts-loader',
exclude: /node_modules/,
},
],
},
resolve: {
extensions: ['.tsx', '.ts', '.js'],
},
output: {
filename: '[name].js',
path: path.resolve(__dirname, 'dist'),
clean: true,
},
};
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/jhpw/canvasPS.git
git@gitee.com:jhpw/canvasPS.git
jhpw
canvasPS
canvasPS图片编辑
master

搜索帮助