Skip to content

Commit 6b4cfa6

Browse files
committed
fix: webpack.config and devdependencies
1 parent 7e0780a commit 6b4cfa6

File tree

3 files changed

+18
-16
lines changed

3 files changed

+18
-16
lines changed

CoCreate.config.js

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -359,13 +359,17 @@ module.exports = {
359359
exclude: ["git"]
360360
},
361361
{
362-
path: "../CoCreate-components/CoCreate-codearea",
363-
repo: "github.com/CoCreate-app/CoCreate-codearea.git"
362+
path: "../CoCreate-components/CoCreate-clipboard",
363+
repo: "github.com/CoCreate-app/CoCreate-clipboard.git"
364364
},
365365
{
366366
path: "../CoCreate-components/CoCreate-clone",
367367
repo: "github.com/CoCreate-app/CoCreate-clone.git"
368368
},
369+
{
370+
path: "../CoCreate-components/CoCreate-codearea",
371+
repo: "github.com/CoCreate-app/CoCreate-codearea.git"
372+
},
369373
{
370374
path: "../CoCreate-components/CoCreate-conditional-logic",
371375
repo: "github.com/CoCreate-app/CoCreate-conditional-logic.git"
@@ -482,6 +486,10 @@ module.exports = {
482486
path: "../CoCreate-components/CoCreate-position",
483487
repo: "github.com/CoCreate-app/CoCreate-position.git"
484488
},
489+
{
490+
path: "../CoCreate-components/CoCreate-print",
491+
repo: "github.com/CoCreate-app/CoCreate-print.git"
492+
},
485493
{
486494
path: "../CoCreate-components/CoCreate-progress",
487495
repo: "github.com/CoCreate-app/CoCreate-progress.git"
@@ -612,7 +620,8 @@ module.exports = {
612620
},
613621
{
614622
path: "../CoCreate-plugins/CoCreate-ffmpeg",
615-
repo: "github.com/CoCreate-app/CoCreate-ffmpeg.git"
623+
repo: "github.com/CoCreate-app/CoCreate-ffmpeg.git",
624+
exclude: ["fs/webpack"]
616625
},
617626
{
618627
path: "../CoCreate-plugins/CoCreate-fullcalendar",

package.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,6 @@
5454
"devDependencies": {
5555
"@cocreate/cli": "^1.49.0",
5656
"@cocreate/webpack": "^1.4.0",
57-
"clean-webpack-plugin": "^3.0.0",
58-
"css-loader": "^5.2.6",
59-
"css-minimizer-webpack-plugin": "^3.0.0",
6057
"esbuild": "^0.25.2",
6158
"esbuild-loader": "^4.3.0",
6259
"mini-css-extract-plugin": "^1.4.0",

webpack.config.js

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,8 @@ const {
66
SymlinkCreator
77
} = require("@cocreate/webpack");
88

9-
const { CleanWebpackPlugin } = require("clean-webpack-plugin");
109
const MiniCssExtractPlugin = require("mini-css-extract-plugin");
11-
const CssMinimizerPlugin = require("css-minimizer-webpack-plugin");
10+
1211
const { EsbuildPlugin } = require("esbuild-loader");
1312

1413
module.exports = async (env, argv) => {
@@ -23,9 +22,8 @@ module.exports = async (env, argv) => {
2322
filename: isProduction ? "[name].js" : "[name].js",
2423
chunkFilename: isProduction ? "[name].js" : "[name].js",
2524
library: "CoCreate", // The name of your library globally
26-
libraryExport: "default" // Exports the default export of your entry point
27-
// libraryTarget: "umd",
28-
// globalObject: "this" // Important for UMD compatibility
25+
libraryExport: "default", // Exports the default export of your entry point
26+
clean: true
2927
},
3028

3129
experiments: {
@@ -39,7 +37,6 @@ module.exports = async (env, argv) => {
3937
new ModuleGenerator(CoCreateConfig.modules),
4038
new FileUploader(env, argv),
4139
new SymlinkCreator(),
42-
new CleanWebpackPlugin(),
4340
new MiniCssExtractPlugin({
4441
filename: isProduction ? "[name].min.css" : "[name].css",
4542
chunkFilename: (pathData) => {
@@ -105,10 +102,9 @@ module.exports = async (env, argv) => {
105102
minimize: isProduction,
106103
minimizer: [
107104
new EsbuildPlugin({
108-
target: "es2017" // Match the loader target
109-
// css: true // Optional: uncomment to let esbuild try minifying CSS
110-
}),
111-
new CssMinimizerPlugin()
105+
target: "es2017", // Match the loader target
106+
css: true
107+
})
112108
],
113109

114110
splitChunks: {

0 commit comments

Comments
 (0)