@cocreate/webpack 1.11.0 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/FUNDING.yml +1 -1
- package/.github/workflows/automated.yml +18 -7
- package/CHANGELOG.md +80 -50
- package/CONTRIBUTING.md +9 -9
- package/README.md +16 -16
- package/docs/index.html +7 -7
- package/package.json +5 -5
- package/src/index.js +42 -2
package/.github/FUNDING.yml
CHANGED
|
@@ -12,16 +12,27 @@ jobs:
|
|
|
12
12
|
- name: Checkout repository
|
|
13
13
|
uses: actions/checkout@v7
|
|
14
14
|
|
|
15
|
-
- name: Sync package.json description to GitHub
|
|
15
|
+
- name: Sync package.json description and keywords to GitHub repository
|
|
16
16
|
env:
|
|
17
|
-
|
|
17
|
+
GH_TOKEN: ${{ secrets.GITHUB }}
|
|
18
18
|
run: |
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
19
|
+
if [ ! -f package.json ]; then
|
|
20
|
+
echo "No package.json found; skipping repository metadata sync."
|
|
21
|
+
exit 0
|
|
22
|
+
fi
|
|
23
|
+
|
|
24
|
+
DESCRIPTION=$(jq -r '.description // empty' package.json)
|
|
25
|
+
if [ -n "$DESCRIPTION" ]; then
|
|
26
|
+
gh api --method PATCH "repos/${GITHUB_REPOSITORY}" -f description="$DESCRIPTION"
|
|
27
|
+
else
|
|
28
|
+
echo "No package description found; leaving GitHub description unchanged."
|
|
29
|
+
fi
|
|
30
|
+
|
|
31
|
+
if jq -e '.keywords | type == "array"' package.json >/dev/null; then
|
|
32
|
+
TOPICS=$(jq -c '.keywords | map(ascii_downcase | gsub("[^a-z0-9-]+"; "-") | gsub("(^-+|-+$)"; "") | .[0:50]) | map(select(length > 0)) | unique | .[0:20]' package.json)
|
|
33
|
+
printf '{"names":%s}' "$TOPICS" | gh api --method PUT -H "Accept: application/vnd.github+json" "repos/${GITHUB_REPOSITORY}/topics" --input -
|
|
23
34
|
else
|
|
24
|
-
echo "No
|
|
35
|
+
echo "No package keywords found; leaving GitHub topics unchanged."
|
|
25
36
|
fi
|
|
26
37
|
|
|
27
38
|
release:
|
package/CHANGELOG.md
CHANGED
|
@@ -1,157 +1,187 @@
|
|
|
1
|
-
|
|
1
|
+
# [2.0.0](https://github.com/CoCreateJS/Webpack/compare/v1.6.2...v2.0.0) (2026-11-02)
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
### Bug Fixes
|
|
5
5
|
|
|
6
|
-
*
|
|
6
|
+
* add Deno specific entries to .gitignore ([a2e073b](https://github.com/CoCreateJS/Webpack/commit/a2e073b311cdaf623b7230f25a26c5d22e6f6f9a))
|
|
7
|
+
* bump [@cocreate](https://github.com/cocreate) dependencies ([74ad143](https://github.com/CoCreateJS/Webpack/commit/74ad14339007216683bb4bbb5012b4c10e3c9a4a))
|
|
8
|
+
* bump versions ([e125202](https://github.com/CoCreateJS/Webpack/commit/e1252020f01a8d9606a0e8ba477927263fa9f01e))
|
|
9
|
+
* bump versions ([baada5d](https://github.com/CoCreateJS/Webpack/commit/baada5defdd3a7e6f61729d9a70221339a6df008))
|
|
10
|
+
* remove trailing slash from node_modules entry in .gitignore ([0c87eb8](https://github.com/CoCreateJS/Webpack/commit/0c87eb8e0ee09d6ffcdf995c5d720efd27400f4d))
|
|
11
|
+
* simplify generated chunk names ([c06d2e0](https://github.com/CoCreateJS/Webpack/commit/c06d2e0f4cba6b1ae839376bf2810a839f5deb24))
|
|
12
|
+
* update git url ([c98d393](https://github.com/CoCreateJS/Webpack/commit/c98d3932e4d83b19cb41ccbc568826d0d848ae7d))
|
|
13
|
+
* update GitHub Actions to use latest versions and sync package.json description ([ee6bf88](https://github.com/CoCreateJS/Webpack/commit/ee6bf885f68d9bdad5ff79d50de73662f31eeb08))
|
|
14
|
+
* update module generation logic and improve error handling ([2aef499](https://github.com/CoCreateJS/Webpack/commit/2aef499301eb0868b075c27c06264cad1052cf15))
|
|
7
15
|
|
|
8
|
-
|
|
16
|
+
|
|
17
|
+
### chore
|
|
18
|
+
|
|
19
|
+
* record repository identity migration as breaking ([ac51473](https://github.com/CoCreateJS/Webpack/commit/ac514739aabd2f4929438f3148668672e2b86e65))
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
### Features
|
|
23
|
+
|
|
24
|
+
* Replace acme with certificates ([c0df326](https://github.com/CoCreateJS/Webpack/commit/c0df326349e3bb0571449a06443d37b3a6e0ffa8))
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
### BREAKING CHANGES
|
|
28
|
+
|
|
29
|
+
* Consumers must use the CoCreateJS repository identity; the previous repository identity is no longer supported.
|
|
30
|
+
|
|
31
|
+
## [1.6.2](https://github.com/CoCreateJS/CoCreate-webpack/compare/v1.6.1...v1.6.2) (2026-07-19)
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
### Bug Fixes
|
|
35
|
+
|
|
36
|
+
* set default branch to main ([cf2e460](https://github.com/CoCreateJS/CoCreate-webpack/commit/cf2e46028f983abc9ede1f6248c8ba0735ee8b45))
|
|
37
|
+
|
|
38
|
+
## [1.6.1](https://github.com/CoCreateJS/CoCreate-webpack/compare/v1.6.0...v1.6.1) (2026-07-17)
|
|
9
39
|
|
|
10
40
|
|
|
11
41
|
### Bug Fixes
|
|
12
42
|
|
|
13
|
-
* bump dependencies ([9101dab](https://github.com/
|
|
14
|
-
* update dependencies to latest versions for improved stability and performance ([6ae8db7](https://github.com/
|
|
43
|
+
* bump dependencies ([9101dab](https://github.com/CoCreateJS/CoCreate-webpack/commit/9101dab888a68db506b46ace777ab4cb2a0a27f3))
|
|
44
|
+
* update dependencies to latest versions for improved stability and performance ([6ae8db7](https://github.com/CoCreateJS/CoCreate-webpack/commit/6ae8db7797fe8f1099961c8ba678110d08e43e67))
|
|
15
45
|
|
|
16
|
-
# [1.6.0](https://github.com/
|
|
46
|
+
# [1.6.0](https://github.com/CoCreateJS/CoCreate-webpack/compare/v1.5.0...v1.6.0) (2026-07-17)
|
|
17
47
|
|
|
18
48
|
|
|
19
49
|
### Features
|
|
20
50
|
|
|
21
|
-
* update automated workflow and release configuration for improved semantic release handling ([3ba7b27](https://github.com/
|
|
51
|
+
* update automated workflow and release configuration for improved semantic release handling ([3ba7b27](https://github.com/CoCreateJS/CoCreate-webpack/commit/3ba7b274d241ecebd50e96723b685808b3444cbb))
|
|
22
52
|
|
|
23
|
-
# [1.5.0](https://github.com/
|
|
53
|
+
# [1.5.0](https://github.com/CoCreateJS/CoCreate-webpack/compare/v1.4.3...v1.5.0) (2026-07-11)
|
|
24
54
|
|
|
25
55
|
|
|
26
56
|
### Bug Fixes
|
|
27
57
|
|
|
28
|
-
* remove devDependencies ([c430e68](https://github.com/
|
|
29
|
-
* remove postinstall script and ensure dependencies are correctly listed in package.json ([f851cd7](https://github.com/
|
|
30
|
-
* removed post install and add add packages to apprved list ([601dda4](https://github.com/
|
|
31
|
-
* semantic version handling ([2e79c82](https://github.com/
|
|
58
|
+
* remove devDependencies ([c430e68](https://github.com/CoCreateJS/CoCreate-webpack/commit/c430e685803c28b386d8b899348b04f8019e795a))
|
|
59
|
+
* remove postinstall script and ensure dependencies are correctly listed in package.json ([f851cd7](https://github.com/CoCreateJS/CoCreate-webpack/commit/f851cd764023e56f33c7bd251ea97f1afd14b295))
|
|
60
|
+
* removed post install and add add packages to apprved list ([601dda4](https://github.com/CoCreateJS/CoCreate-webpack/commit/601dda4b5a7503262fc8ac35bd8fc0645e18486c))
|
|
61
|
+
* semantic version handling ([2e79c82](https://github.com/CoCreateJS/CoCreate-webpack/commit/2e79c82340d6e87d6b6dda20c781cbafd01a14fb))
|
|
32
62
|
|
|
33
63
|
|
|
34
64
|
### Features
|
|
35
65
|
|
|
36
|
-
* update ModuleGenerator to use pluginOptions and improve error handling ([af6db28](https://github.com/
|
|
66
|
+
* update ModuleGenerator to use pluginOptions and improve error handling ([af6db28](https://github.com/CoCreateJS/CoCreate-webpack/commit/af6db28d6f0dde3906b424dea975726ddfcf2101))
|
|
37
67
|
|
|
38
|
-
## [1.4.3](https://github.com/
|
|
68
|
+
## [1.4.3](https://github.com/CoCreateJS/CoCreate-webpack/compare/v1.4.2...v1.4.3) (2026-02-04)
|
|
39
69
|
|
|
40
70
|
|
|
41
71
|
### Bug Fixes
|
|
42
72
|
|
|
43
|
-
* update worklow ([291332f](https://github.com/
|
|
73
|
+
* update worklow ([291332f](https://github.com/CoCreateJS/CoCreate-webpack/commit/291332ff1824423df5798ca2657b7ff1d1f0a2ed))
|
|
44
74
|
|
|
45
|
-
## [1.4.2](https://github.com/
|
|
75
|
+
## [1.4.2](https://github.com/CoCreateJS/CoCreate-webpack/compare/v1.4.1...v1.4.2) (2025-05-01)
|
|
46
76
|
|
|
47
77
|
|
|
48
78
|
### Bug Fixes
|
|
49
79
|
|
|
50
|
-
* update [@cocreate](https://github.com/cocreate) dependencies ([d24e3d3](https://github.com/
|
|
80
|
+
* update [@cocreate](https://github.com/cocreate) dependencies ([d24e3d3](https://github.com/CoCreateJS/CoCreate-webpack/commit/d24e3d3447955acf5d56c522be31c93fe2d1cb7b))
|
|
51
81
|
|
|
52
|
-
## [1.4.1](https://github.com/
|
|
82
|
+
## [1.4.1](https://github.com/CoCreateJS/CoCreate-webpack/compare/v1.4.0...v1.4.1) (2025-04-30)
|
|
53
83
|
|
|
54
84
|
|
|
55
85
|
### Bug Fixes
|
|
56
86
|
|
|
57
|
-
* added comments ([f48117a](https://github.com/
|
|
58
|
-
* update query attributes ([9deaf7f](https://github.com/
|
|
59
|
-
* updated cocreate modules versions ([6483d6a](https://github.com/
|
|
87
|
+
* added comments ([f48117a](https://github.com/CoCreateJS/CoCreate-webpack/commit/f48117a6e6b322c5701c89e2fd9d992a15de95a0))
|
|
88
|
+
* update query attributes ([9deaf7f](https://github.com/CoCreateJS/CoCreate-webpack/commit/9deaf7fe574d0a0d33992b7bde9460bad9008f5e))
|
|
89
|
+
* updated cocreate modules versions ([6483d6a](https://github.com/CoCreateJS/CoCreate-webpack/commit/6483d6a02c18343f1eb8a42596fcb3fac42fd544))
|
|
60
90
|
|
|
61
|
-
# [1.4.0](https://github.com/
|
|
91
|
+
# [1.4.0](https://github.com/CoCreateJS/CoCreate-webpack/compare/v1.3.6...v1.4.0) (2024-11-04)
|
|
62
92
|
|
|
63
93
|
|
|
64
94
|
### Bug Fixes
|
|
65
95
|
|
|
66
|
-
* pretier.config.js and file formating ([8921a99](https://github.com/
|
|
96
|
+
* pretier.config.js and file formating ([8921a99](https://github.com/CoCreateJS/CoCreate-webpack/commit/8921a99579a95ae06e1e24361cee1ac7ca6d2939))
|
|
67
97
|
|
|
68
98
|
|
|
69
99
|
### Features
|
|
70
100
|
|
|
71
|
-
* add prettier.config.js and format files ([924fe7f](https://github.com/
|
|
72
|
-
* add prettier.config.js and format files ([fae1d78](https://github.com/
|
|
101
|
+
* add prettier.config.js and format files ([924fe7f](https://github.com/CoCreateJS/CoCreate-webpack/commit/924fe7fe931802b0818496e8ac344fab5fe9fffc))
|
|
102
|
+
* add prettier.config.js and format files ([fae1d78](https://github.com/CoCreateJS/CoCreate-webpack/commit/fae1d78c9fa5cf941b24e0b0d90aa9b6c6570218))
|
|
73
103
|
|
|
74
|
-
## [1.3.6](https://github.com/
|
|
104
|
+
## [1.3.6](https://github.com/CoCreateJS/CoCreate-webpack/compare/v1.3.5...v1.3.6) (2024-06-12)
|
|
75
105
|
|
|
76
106
|
|
|
77
107
|
### Bug Fixes
|
|
78
108
|
|
|
79
|
-
* bump cocreate dependencies ([d9f6b20](https://github.com/
|
|
80
|
-
* svg icon class ([9c1014c](https://github.com/
|
|
109
|
+
* bump cocreate dependencies ([d9f6b20](https://github.com/CoCreateJS/CoCreate-webpack/commit/d9f6b200a8624be3ce53d30db6f952391c4d033c))
|
|
110
|
+
* svg icon class ([9c1014c](https://github.com/CoCreateJS/CoCreate-webpack/commit/9c1014cad45ecfbfe90990d23a821538b832ae7c))
|
|
81
111
|
|
|
82
|
-
## [1.3.5](https://github.com/
|
|
112
|
+
## [1.3.5](https://github.com/CoCreateJS/CoCreate-webpack/compare/v1.3.4...v1.3.5) (2024-04-29)
|
|
83
113
|
|
|
84
114
|
|
|
85
115
|
### Bug Fixes
|
|
86
116
|
|
|
87
|
-
* bump cocreate dependencies ([05e8455](https://github.com/
|
|
117
|
+
* bump cocreate dependencies ([05e8455](https://github.com/CoCreateJS/CoCreate-webpack/commit/05e84559f10ab984e2e1abc880fa5ba720766f37))
|
|
88
118
|
|
|
89
|
-
## [1.3.4](https://github.com/
|
|
119
|
+
## [1.3.4](https://github.com/CoCreateJS/CoCreate-webpack/compare/v1.3.3...v1.3.4) (2024-04-26)
|
|
90
120
|
|
|
91
121
|
|
|
92
122
|
### Bug Fixes
|
|
93
123
|
|
|
94
|
-
* lazyLoad selector formating ([054f89c](https://github.com/
|
|
124
|
+
* lazyLoad selector formating ([054f89c](https://github.com/CoCreateJS/CoCreate-webpack/commit/054f89ccde31bd74c62e248c4c5aa00de0bd0d7d))
|
|
95
125
|
|
|
96
|
-
## [1.3.3](https://github.com/
|
|
126
|
+
## [1.3.3](https://github.com/CoCreateJS/CoCreate-webpack/compare/v1.3.2...v1.3.3) (2024-03-19)
|
|
97
127
|
|
|
98
128
|
|
|
99
129
|
### Bug Fixes
|
|
100
130
|
|
|
101
|
-
* replaced keyword spaces with hyphens and lowercase letters only ([0c27212](https://github.com/
|
|
131
|
+
* replaced keyword spaces with hyphens and lowercase letters only ([0c27212](https://github.com/CoCreateJS/CoCreate-webpack/commit/0c27212901ce03c6d9d62a8180a3242ad18d6b48))
|
|
102
132
|
|
|
103
|
-
## [1.3.2](https://github.com/
|
|
133
|
+
## [1.3.2](https://github.com/CoCreateJS/CoCreate-webpack/compare/v1.3.1...v1.3.2) (2024-03-18)
|
|
104
134
|
|
|
105
135
|
|
|
106
136
|
### Bug Fixes
|
|
107
137
|
|
|
108
|
-
* description ([8f285da](https://github.com/
|
|
138
|
+
* description ([8f285da](https://github.com/CoCreateJS/CoCreate-webpack/commit/8f285daeabb4b85b607e24892ae0d91112ed8a32))
|
|
109
139
|
|
|
110
|
-
## [1.3.1](https://github.com/
|
|
140
|
+
## [1.3.1](https://github.com/CoCreateJS/CoCreate-webpack/compare/v1.3.0...v1.3.1) (2024-02-05)
|
|
111
141
|
|
|
112
142
|
|
|
113
143
|
### Bug Fixes
|
|
114
144
|
|
|
115
|
-
* Removed https://cdn.
|
|
145
|
+
* Removed https://cdn.CoCreateJS.com/latest/CoCreate.min.css ([2ce1c33](https://github.com/CoCreateJS/CoCreate-webpack/commit/2ce1c33c1f27f5fd0fdadfc053de43193d72f69a))
|
|
116
146
|
|
|
117
|
-
# [1.3.0](https://github.com/
|
|
147
|
+
# [1.3.0](https://github.com/CoCreateJS/CoCreate-webpack/compare/v1.2.0...v1.3.0) (2023-12-31)
|
|
118
148
|
|
|
119
149
|
|
|
120
150
|
### Bug Fixes
|
|
121
151
|
|
|
122
|
-
* fileUploader handle argv ([db835c4](https://github.com/
|
|
123
|
-
* update fileUploader to pascalCase FileUploader ([1507475](https://github.com/
|
|
152
|
+
* fileUploader handle argv ([db835c4](https://github.com/CoCreateJS/CoCreate-webpack/commit/db835c4122a2b238b149c19e0451956dc7630b1f))
|
|
153
|
+
* update fileUploader to pascalCase FileUploader ([1507475](https://github.com/CoCreateJS/CoCreate-webpack/commit/15074750a5f9c473841f33654b9890ce01d76e8e))
|
|
124
154
|
|
|
125
155
|
|
|
126
156
|
### Features
|
|
127
157
|
|
|
128
|
-
* loader to handle special characters ([74134a6](https://github.com/
|
|
158
|
+
* loader to handle special characters ([74134a6](https://github.com/CoCreateJS/CoCreate-webpack/commit/74134a6066d50a486a92ca13c7ba33090fdc190a))
|
|
129
159
|
|
|
130
|
-
# [1.2.0](https://github.com/
|
|
160
|
+
# [1.2.0](https://github.com/CoCreateJS/CoCreate-webpack/compare/v1.1.0...v1.2.0) (2023-12-28)
|
|
131
161
|
|
|
132
162
|
|
|
133
163
|
### Features
|
|
134
164
|
|
|
135
|
-
* symlinkCreator ([5697054](https://github.com/
|
|
165
|
+
* symlinkCreator ([5697054](https://github.com/CoCreateJS/CoCreate-webpack/commit/5697054b547e3a9217c7563f4aca64429db3450b))
|
|
136
166
|
|
|
137
|
-
# [1.1.0](https://github.com/
|
|
167
|
+
# [1.1.0](https://github.com/CoCreateJS/CoCreate-webpack/compare/v1.0.1...v1.1.0) (2023-12-28)
|
|
138
168
|
|
|
139
169
|
|
|
140
170
|
### Features
|
|
141
171
|
|
|
142
|
-
* symlinkCreator ([b38a089](https://github.com/
|
|
172
|
+
* symlinkCreator ([b38a089](https://github.com/CoCreateJS/CoCreate-webpack/commit/b38a0892b3755bf83844cbf2b17264c25d5623dc))
|
|
143
173
|
|
|
144
|
-
## [1.0.1](https://github.com/
|
|
174
|
+
## [1.0.1](https://github.com/CoCreateJS/CoCreate-webpack/compare/v1.0.0...v1.0.1) (2023-12-28)
|
|
145
175
|
|
|
146
176
|
|
|
147
177
|
### Bug Fixes
|
|
148
178
|
|
|
149
|
-
* removed webpack.config ([4d3b7de](https://github.com/
|
|
179
|
+
* removed webpack.config ([4d3b7de](https://github.com/CoCreateJS/CoCreate-webpack/commit/4d3b7def7b59c0736cbf9b2dbb3e40585486cf92))
|
|
150
180
|
|
|
151
181
|
# 1.0.0 (2023-12-28)
|
|
152
182
|
|
|
153
183
|
|
|
154
184
|
### Features
|
|
155
185
|
|
|
156
|
-
* Initial Release ([57c489d](https://github.com/
|
|
157
|
-
* new plugin classes ([7cf0898](https://github.com/
|
|
186
|
+
* Initial Release ([57c489d](https://github.com/CoCreateJS/CoCreate-webpack/commit/57c489df32681403e3827c6e43658daaf21fae11))
|
|
187
|
+
* new plugin classes ([7cf0898](https://github.com/CoCreateJS/CoCreate-webpack/commit/7cf0898fae463370e1bb9b2e50a6832009dc2a28))
|
package/CONTRIBUTING.md
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
# Contributing to CoCreate-webpack
|
|
2
2
|
|
|
3
|
-
This project is work of [many contributors](https://github.com/
|
|
4
|
-
You're encouraged to submit [pull requests](https://github.com/
|
|
5
|
-
[propose features and discuss issues](https://github.com/
|
|
3
|
+
This project is work of [many contributors](https://github.com/CoCreateJS/Webpack/graphs/contributors).
|
|
4
|
+
You're encouraged to submit [pull requests](https://github.com/CoCreateJS/Webpack/pulls),
|
|
5
|
+
[propose features and discuss issues](https://github.com/CoCreateJS/Webpack/issues).
|
|
6
6
|
|
|
7
7
|
In the examples below, substitute your Github username for `contributor` in URLs.
|
|
8
8
|
|
|
9
9
|
## Fork the Project
|
|
10
10
|
|
|
11
|
-
Fork the [project on Github](https://github.com/
|
|
11
|
+
Fork the [project on Github](https://github.com/CoCreateJS/Webpack) and check out your copy.
|
|
12
12
|
|
|
13
13
|
```
|
|
14
|
-
git clone https://github.com/contributor/
|
|
15
|
-
cd
|
|
16
|
-
git remote add upstream https://
|
|
14
|
+
git clone https://github.com/contributor/Webpack.git
|
|
15
|
+
cd Webpack
|
|
16
|
+
git remote add upstream https://github.com/CoCreateJS/Webpack.git
|
|
17
17
|
```
|
|
18
18
|
|
|
19
19
|
## Create a Topic Branch
|
|
@@ -70,7 +70,7 @@ git push origin my-feature-branch
|
|
|
70
70
|
|
|
71
71
|
## Make a Pull Request
|
|
72
72
|
|
|
73
|
-
Go to [https://github.com/
|
|
73
|
+
Go to [https://github.com/CoCreateJS/Webpack](https://github.com/CoCreateJS/Webpack) and select your feature branch.
|
|
74
74
|
Click the 'Pull Request' button and fill out the form. Pull requests are usually reviewed within a few days.
|
|
75
75
|
|
|
76
76
|
## Rebase
|
|
@@ -88,7 +88,7 @@ git push origin my-feature-branch -f
|
|
|
88
88
|
Update the [CHANGELOG](CHANGELOG.md) with the pull request number. A typical entry looks as follows.
|
|
89
89
|
|
|
90
90
|
```
|
|
91
|
-
* [#123](https://github.com/
|
|
91
|
+
* [#123](https://github.com/CoCreateJS/industry/pull/123): Reticulated splines - [@contributor](https://github.com/contributor).
|
|
92
92
|
```
|
|
93
93
|
|
|
94
94
|
Amend your previous commit and force push the changes.
|
package/README.md
CHANGED
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
CoCreate-webpack is a dynamic module tailored for CoCreate applications, designed to automate and enhance the Webpack experience. It simplifies file watching, chunking, lazy loading, and file uploading via intuitive `CoCreate.config` configurations, streamlining the development process for projects of any scale.
|
|
4
4
|
|
|
5
|
-

|
|
6
|
+

|
|
7
|
+

|
|
8
|
+

|
|
9
|
+

|
|
10
10
|

|
|
11
11
|
|
|
12
12
|
## Features
|
|
@@ -16,20 +16,20 @@ CoCreate-webpack is a dynamic module tailored for CoCreate applications, designe
|
|
|
16
16
|
- **Efficient Lazy Loading**: Implements lazy loading to improve resource management.
|
|
17
17
|
- **Seamless File Uploading**: Automatically uploads modified files, keeping projects current.
|
|
18
18
|
|
|
19
|
-

|
|
20
20
|
|
|
21
|
-
## [Docs & Demo](https://
|
|
21
|
+
## [Docs & Demo](https://CoCreateJS.com/docs/webpack)
|
|
22
22
|
|
|
23
|
-
For a complete guide and working demo refer to the [doumentation](https://
|
|
23
|
+
For a complete guide and working demo refer to the [doumentation](https://CoCreateJS.com/docs/webpack)
|
|
24
24
|
|
|
25
25
|
## CDN
|
|
26
26
|
|
|
27
27
|
```html
|
|
28
|
-
<script src="https://cdn.
|
|
28
|
+
<script src="https://cdn.CoCreateJS.com/webpack/latest/CoCreate-webpack.min.js"></script>
|
|
29
29
|
```
|
|
30
30
|
|
|
31
31
|
```html
|
|
32
|
-
<script src="https://cdn.
|
|
32
|
+
<script src="https://cdn.CoCreateJS.com/webpack/latest/CoCreate-webpack.min.css"></script>
|
|
33
33
|
```
|
|
34
34
|
|
|
35
35
|
## NPM
|
|
@@ -57,13 +57,13 @@ $ yarn install @cocreate/webpack
|
|
|
57
57
|
|
|
58
58
|
# Announcements
|
|
59
59
|
|
|
60
|
-
All updates to this library are documented in our [CHANGELOG](https://github.com/
|
|
60
|
+
All updates to this library are documented in our [CHANGELOG](https://github.com/CoCreateJS/Webpack/blob/master/CHANGELOG.md) and [releases](https://github.com/CoCreateJS/Webpack/releases). You may also subscribe to email for releases and breaking changes.
|
|
61
61
|
|
|
62
62
|
<a name="roadmap"></a>
|
|
63
63
|
|
|
64
64
|
# Roadmap
|
|
65
65
|
|
|
66
|
-
If you are interested in the future direction of this project, please take a look at our open [issues](https://github.com/
|
|
66
|
+
If you are interested in the future direction of this project, please take a look at our open [issues](https://github.com/CoCreateJS/Webpack/issues) and [pull requests](https://github.com/CoCreateJS/Webpack/pulls). We would love to hear your feedback.
|
|
67
67
|
|
|
68
68
|
<a name="about"></a>
|
|
69
69
|
|
|
@@ -71,7 +71,7 @@ If you are interested in the future direction of this project, please take a loo
|
|
|
71
71
|
|
|
72
72
|
CoCreate-webpack is guided and supported by the CoCreate Developer Experience Team.
|
|
73
73
|
|
|
74
|
-
Please Email the Developer Experience Team [here](mailto:develop@
|
|
74
|
+
Please Email the Developer Experience Team [here](mailto:develop@CoCreateJS.com) in case of any queries.
|
|
75
75
|
|
|
76
76
|
CoCreate-webpack is maintained and funded by CoCreate. The names and logos for CoCreate are trademarks of CoCreate, LLC.
|
|
77
77
|
|
|
@@ -79,9 +79,9 @@ CoCreate-webpack is maintained and funded by CoCreate. The names and logos for C
|
|
|
79
79
|
|
|
80
80
|
# How to Contribute
|
|
81
81
|
|
|
82
|
-
We encourage contribution to our libraries (you might even score some nifty swag), please see our [CONTRIBUTING](https://github.com/
|
|
82
|
+
We encourage contribution to our libraries (you might even score some nifty swag), please see our [CONTRIBUTING](https://github.com/CoCreateJS/Webpack/blob/master/CONTRIBUTING.md) guide for details.
|
|
83
83
|
|
|
84
|
-
We want this library to be community-driven, and CoCreate led. We need your help to realize this goal. To help make sure we are building the right things in the right order, we ask that you create [issues](https://github.com/
|
|
84
|
+
We want this library to be community-driven, and CoCreate led. We need your help to realize this goal. To help make sure we are building the right things in the right order, we ask that you create [issues](https://github.com/CoCreateJS/Webpack/issues) and [pull requests](https://github.com/CoCreateJS/Webpack/pulls) or merely upvote or comment on existing issues or pull requests.
|
|
85
85
|
|
|
86
86
|
We appreciate your continued support, thank you!
|
|
87
87
|
|
|
@@ -89,4 +89,4 @@ We appreciate your continued support, thank you!
|
|
|
89
89
|
|
|
90
90
|
# License
|
|
91
91
|
|
|
92
|
-
[The MIT License (MIT)](https://github.com/
|
|
92
|
+
[The MIT License (MIT)](https://github.com/CoCreateJS/Webpack/blob/master/LICENSE)
|
package/docs/index.html
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
rel="icon"
|
|
10
10
|
type="image/png"
|
|
11
11
|
sizes="32x32"
|
|
12
|
-
href="https://
|
|
12
|
+
href="https://CoCreateJS.com/images/favicon.ico" />
|
|
13
13
|
<meta
|
|
14
14
|
name="description"
|
|
15
15
|
content="A convenient chain handler allows user to chain multiple components together. When one webpack is complete next one will start untill all webpack completed." />
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
<meta name="robots" content="index,follow" />
|
|
20
20
|
<meta
|
|
21
21
|
property="og:image"
|
|
22
|
-
content="https://cdn.
|
|
22
|
+
content="https://cdn.CoCreateJS.com/docs/webpack.png" />
|
|
23
23
|
|
|
24
24
|
<link
|
|
25
25
|
rel="stylesheet"
|
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
share-title="CoCreate webpack"
|
|
74
74
|
share-height="600"
|
|
75
75
|
share-width="700"
|
|
76
|
-
share-media="https://cdn.
|
|
76
|
+
share-media="https://cdn.CoCreateJS.com/docs/webpack.png"
|
|
77
77
|
hover="display:block!important"
|
|
78
78
|
hover-query=".social-networks">
|
|
79
79
|
<div class="display:none social-networks">
|
|
@@ -111,7 +111,7 @@
|
|
|
111
111
|
></a>
|
|
112
112
|
</div>
|
|
113
113
|
<a
|
|
114
|
-
href="https://github.com/
|
|
114
|
+
href="https://github.com/CoCreateJS/Webpack"
|
|
115
115
|
target="_blank"
|
|
116
116
|
class=""
|
|
117
117
|
><i src="/assets/svg/github.svg"></i
|
|
@@ -152,7 +152,7 @@
|
|
|
152
152
|
<p class="padding:10px_0px line-height:1.5">
|
|
153
153
|
Or you can use cdn link:
|
|
154
154
|
</p>
|
|
155
|
-
<pre><code class="language-html"><script>https://cdn.
|
|
155
|
+
<pre><code class="language-html"><script>https://cdn.CoCreateJS.com/webpack/latest/CoCreate-webpack.min.js</script></code></pre>
|
|
156
156
|
|
|
157
157
|
<div
|
|
158
158
|
id="webpack-usage"
|
|
@@ -340,12 +340,12 @@
|
|
|
340
340
|
</div>
|
|
341
341
|
</div>
|
|
342
342
|
<button
|
|
343
|
-
href="https://github.com/
|
|
343
|
+
href="https://github.com/CoCreateJS/Webpack/tree/master/docs/index.html?message=docs%3A%20describe%20your%20change..."
|
|
344
344
|
target="_blank"
|
|
345
345
|
class="display:flex justify-content:center align-items:center position:fixed bottom:15px right:15px height:50px width:50px border-radius:50% box-shadow:0px_2px_10px_0px_rgba(0,_0,_0,_0.4)">
|
|
346
346
|
<i src="../assets/svg/pencil-alt.svg"></i>
|
|
347
347
|
</button>
|
|
348
348
|
</main>
|
|
349
|
-
<script src="https://cdn.
|
|
349
|
+
<script src="https://cdn.CoCreateJS.com/latest/CoCreate.min.js"></script>
|
|
350
350
|
</body>
|
|
351
351
|
</html>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cocreate/webpack",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0",
|
|
4
4
|
"description": "A Webpack integration tool for CoCreate applications, enabling file watching, automated chunking, lazy loading, and file uploading. It leverages CoCreate.config for streamlined project builds and development workflows.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"webpack",
|
|
@@ -27,17 +27,17 @@
|
|
|
27
27
|
},
|
|
28
28
|
"repository": {
|
|
29
29
|
"type": "git",
|
|
30
|
-
"url": "git+https://
|
|
30
|
+
"url": "git+https://github.com/CoCreateJS/Webpack.git"
|
|
31
31
|
},
|
|
32
32
|
"author": "CoCreate LLC",
|
|
33
33
|
"license": "MIT",
|
|
34
34
|
"bugs": {
|
|
35
|
-
"url": "https://github.com/
|
|
35
|
+
"url": "https://github.com/CoCreateJS/Webpack/issues"
|
|
36
36
|
},
|
|
37
|
-
"homepage": "https://
|
|
37
|
+
"homepage": "https://CoCreateJS.com/docs/webpack",
|
|
38
38
|
"funding": {
|
|
39
39
|
"type": "GitHub Sponsors ❤",
|
|
40
|
-
"url": "https://github.com/sponsors/
|
|
40
|
+
"url": "https://github.com/sponsors/CoCreateJS"
|
|
41
41
|
},
|
|
42
42
|
"main": "./src/index.js",
|
|
43
43
|
"dependencies": {
|
package/src/index.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @fileoverview Webpack plugins and loaders for the CoCreate ecosystem.
|
|
3
3
|
* Includes unified entry generation (`CoCreate.entry.js`), automated file uploading, and symlink management.
|
|
4
|
+
* @environment tooling
|
|
4
5
|
*/
|
|
5
6
|
|
|
6
7
|
const fs = require("fs");
|
|
@@ -18,6 +19,8 @@ try {
|
|
|
18
19
|
* @class ModuleGenerator
|
|
19
20
|
* @description Webpack plugin that generates a single unified entry file (`CoCreate.entry.js`)
|
|
20
21
|
* containing both global plugin configuration and `@cocreate/lazy-loader` declarations.
|
|
22
|
+
* @public
|
|
23
|
+
* @environment tooling
|
|
21
24
|
*/
|
|
22
25
|
class ModuleGenerator {
|
|
23
26
|
/**
|
|
@@ -26,9 +29,14 @@ class ModuleGenerator {
|
|
|
26
29
|
* @param {Object} [pluginOptions.config] - Direct CoCreate configuration object.
|
|
27
30
|
* @param {string} [pluginOptions.configPath] - Path to a CoCreate config file.
|
|
28
31
|
* @param {string} [pluginOptions.entryOutputPath="./CoCreate.entry.js"] - Path for generated unified entry file.
|
|
32
|
+
* @public
|
|
33
|
+
* @environment tooling
|
|
29
34
|
*/
|
|
30
35
|
constructor(pluginOptions = {}) {
|
|
31
|
-
/** @type {Object}
|
|
36
|
+
/** @type {Object}
|
|
37
|
+
* @public
|
|
38
|
+
* @environment tooling
|
|
39
|
+
*/
|
|
32
40
|
this.pluginOptions = pluginOptions;
|
|
33
41
|
}
|
|
34
42
|
|
|
@@ -36,6 +44,8 @@ class ModuleGenerator {
|
|
|
36
44
|
* @method apply
|
|
37
45
|
* @description Taps into Webpack's `beforeCompile` hook to write the unified entry file.
|
|
38
46
|
* @param {import('webpack').Compiler} compiler - The Webpack compiler instance.
|
|
47
|
+
* @public
|
|
48
|
+
* @environment tooling
|
|
39
49
|
*/
|
|
40
50
|
apply(compiler) {
|
|
41
51
|
let CoCreateConfig = null;
|
|
@@ -61,7 +71,10 @@ class ModuleGenerator {
|
|
|
61
71
|
return;
|
|
62
72
|
}
|
|
63
73
|
|
|
64
|
-
/** @type {boolean} State flag to avoid redundant disk writes during watch mode recompiles.
|
|
74
|
+
/** @type {boolean} State flag to avoid redundant disk writes during watch mode recompiles.
|
|
75
|
+
* @private
|
|
76
|
+
* @environment tooling
|
|
77
|
+
*/
|
|
65
78
|
let entryGenerated = false;
|
|
66
79
|
|
|
67
80
|
compiler.hooks.beforeCompile.tapAsync(
|
|
@@ -130,12 +143,16 @@ class ModuleGenerator {
|
|
|
130
143
|
/**
|
|
131
144
|
* @class FileUploader
|
|
132
145
|
* @description Handles automated file uploads to the CoCreate platform during Webpack watch mode.
|
|
146
|
+
* @public
|
|
147
|
+
* @environment tooling
|
|
133
148
|
*/
|
|
134
149
|
class FileUploader {
|
|
135
150
|
/**
|
|
136
151
|
* @constructor
|
|
137
152
|
* @param {Object} [env={}] - Environment variables passed from the Webpack CLI.
|
|
138
153
|
* @param {Object} [argv={}] - Command line arguments.
|
|
154
|
+
* @public
|
|
155
|
+
* @environment tooling
|
|
139
156
|
*/
|
|
140
157
|
constructor(env = {}, argv = {}) {
|
|
141
158
|
this.env = env;
|
|
@@ -147,6 +164,8 @@ class FileUploader {
|
|
|
147
164
|
* @method apply
|
|
148
165
|
* @description Hooks into compilation hooks to upload files to CoCreate.
|
|
149
166
|
* @param {import('webpack').Compiler} compiler - The Webpack compiler instance.
|
|
167
|
+
* @public
|
|
168
|
+
* @environment tooling
|
|
150
169
|
*/
|
|
151
170
|
apply(compiler) {
|
|
152
171
|
if (this.isWatch && upload) {
|
|
@@ -170,6 +189,12 @@ class FileUploader {
|
|
|
170
189
|
}
|
|
171
190
|
}
|
|
172
191
|
|
|
192
|
+
/**
|
|
193
|
+
* SymlinkCreator public API.
|
|
194
|
+
*
|
|
195
|
+
* @public
|
|
196
|
+
* @environment tooling
|
|
197
|
+
*/
|
|
173
198
|
class SymlinkCreator {
|
|
174
199
|
apply(compiler) {
|
|
175
200
|
// Symlink creation logic can be tapped here if required
|
|
@@ -182,3 +207,18 @@ module.exports = {
|
|
|
182
207
|
SymlinkCreator,
|
|
183
208
|
UnicodeLoader: path.resolve(__dirname, 'replace-unicode.js')
|
|
184
209
|
};
|
|
210
|
+
|
|
211
|
+
/**
|
|
212
|
+
* UnicodeLoader public API.
|
|
213
|
+
*
|
|
214
|
+
* @name UnicodeLoader
|
|
215
|
+
* @public
|
|
216
|
+
* @environment tooling
|
|
217
|
+
*/
|
|
218
|
+
|
|
219
|
+
/**
|
|
220
|
+
* A Webpack integration tool for CoCreate applications, enabling file watching, automated chunking, lazy loading, and file uploading. It leverages CoCreate.config for streamlined project builds and development workflows.
|
|
221
|
+
*
|
|
222
|
+
* @module webpack
|
|
223
|
+
* @environment tooling
|
|
224
|
+
*/
|