django-cms / djangocms-admin-style

django CMS Admin Style is a Django Theme tailored to the needs of django CMS.
http://www.django-cms.org/
Other
418 stars 118 forks source link

Gulp pipeline upgrade #444

Closed marksweb closed 2 years ago

marksweb commented 2 years ago

I've started to upgrade the gulp pipeline based on the upgrade made to django-cms itself which is now using node 16.

https://github.com/marksweb/djangocms-admin-style/tree/feat/node-upgrade

However here, there's a problem with webpack during bundling.

% gulp bundle
[00:10:59] Using gulpfile ~/apps/djangocms-admin-style/gulpfile.js
[00:10:59] Starting 'bundle'...
[00:10:59] 'bundle' errored after 17 ms
[00:10:59] TypeError: webpack.optimize.OccurenceOrderPlugin is not a constructor
    at module.exports (/Users/mwalker/apps/djangocms-admin-style/webpack.config.js:54:13)
    at /Users/mwalker/apps/djangocms-admin-style/gulpfile.js:134:51
    at taskWrapper (/Users/mwalker/apps/djangocms-admin-style/node_modules/undertaker/lib/set-task.js:13:15)
    at bound (node:domain:421:15)
    at runBound (node:domain:432:12)
    at asyncRunner (/Users/mwalker/apps/djangocms-admin-style/node_modules/async-done/index.js:55:18)
    at processTicksAndRejections (node:internal/process/task_queues:78:11)

I'm not familiar with webpack, and not had a lot of time, so currently not progressed with this.

marksweb commented 2 years ago

Fixed by #445 I think