初始化 Photoshop AI 编辑面板

This commit is contained in:
hanhan
2026-08-03 19:37:45 +08:00
commit c4127c7820
22 changed files with 5265 additions and 0 deletions
+44
View File
@@ -0,0 +1,44 @@
const path = require("path");
const CopyPlugin = require("copy-webpack-plugin");
const MiniCssExtractPlugin = require("mini-css-extract-plugin");
module.exports = {
entry: './src/index.jsx',
output: {
path: path.resolve(__dirname, 'dist'),
filename: 'index.js'
},
target: 'web',
devtool: 'eval-cheap-source-map',
resolve: {
extensions: [".js", ".jsx"]
},
module: {
rules: [
{
test: /\.jsx?$/,
exclude: /node_modules/,
loader: "babel-loader",
options: {
plugins: [
"@babel/transform-react-jsx",
"@babel/proposal-object-rest-spread",
"@babel/plugin-syntax-class-properties",
]
}
},
{
test: /\.css$/,
use: [MiniCssExtractPlugin.loader, "css-loader", "postcss-loader"]
}
]
},
plugins: [
new MiniCssExtractPlugin({ filename: 'styles/panel.css' }),
new CopyPlugin([
'cep'
], {
copyUnmodified: true
})
]
};