Make lib/utils/get-webpack-config-dll.js more flexible outside expected package structure #152
Labels
pending:feedback
This issue is blocked by necessary feedback.
squad:devops
Issue to be handled by the Devops team.
type:feature
This issue reports a feature request (an idea for a new functionality or a missing option).
📝 Provide a description of the new feature
packages/ckeditor5-package-tools/lib/utils/get-webpack-config-dll.js
is quite rigid about what directory structure it expects, which makes it difficult to use in an existing webpack ecosystem, or other situations where you may want to use this webpack config in a different path context.I propose passing more options (defaulting to value that are set now) to support these use-cases.
Options would be:
dllName
ckeditor5manifestPath
translationSourceFilesPattern
(for when your package includes other plugins you want translations generated for)PACKAGE_ROOT_DIR
from the webpack context (eg monorepo)Additionally,
packages/ckeditor5-package-tools/lib/index.js
would exportpackages/ckeditor5-package-tools/lib/utils/get-webpack-config-dll.js
.What is the expected behavior of the proposed feature?
webpack.config.js
Given that this change would make the webpack config generic, it may make sense for this to live https://github.com/ckeditor/ckeditor5-dev/blob/master/packages/ckeditor5-dev-utils/lib/builds/getdllpluginwebpackconfig.js which is largely duplicated config, but specific for
@ckeditor5/*
packages.Seems like it could also be a win for CKEditor to use the same config in both places with options passed, rather than duplicating.
I'm happy to PR this, but wanted see what everyone thought first.
If you'd like to see this feature implemented, add a 👍 reaction to this post.
The text was updated successfully, but these errors were encountered: