Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

1.0.0 Roadmap #23

Closed
kotarella1110 opened this issue Sep 5, 2019 · 4 comments · Fixed by #30
Closed

1.0.0 Roadmap #23

kotarella1110 opened this issue Sep 5, 2019 · 4 comments · Fixed by #30

Comments

@kotarella1110
Copy link
Owner

kotarella1110 commented Sep 5, 2019

Test it out:

$ npm install -D webpack@4 webpack-cli@3 webpack-dev-server@3
$ cordova plugin add cordova-plugin-webpack@alpha

Removed webpack packages from deps

This plugin depends on the plugin's own webpack, but it will be modified to depend on the webpack you installed.
Therefore, removed webpack packages (webpack, webpack-cli, webpack-dev-server) from deps of package.json and add the webpack packages to peerDeps (2b86b41).
You need to install the webpack packages yourself before installing this plugin.

$ npm install -D webpack@4 webpack-cli@3 webpack-dev-server@3

Add a new --webpack option

This plugin has no way to map parameters sent to the CLI to a corresponding parameter in the webpack configuration file such as webpack-cli and webpack-dev-server.
Add a new --webpack option to make this possible.

--webpack option's parameters is passed to webpack-cli options or webpack-dev-server options.

$ cordova build ios -- --webpack.mode=production
$ cordova build ios -- --webpack.env.prod
$ cordova run android -- --livereload --webpack.port=8888 --webpack.watch-content-base=false

The --webpackConfig option will be removed in v1 by adding a new --webpack option.
Use --webpack.config option instead of --webpackConfig option.

- $ cordova build ios -- --webpackConfig example.config.js
+ $ cordova build ios -- --webpack.config example.config.js

Support various webpack configuration types

This plugin only supports exporting a single configuration object.
Covers other needs besides exporting a single configuration object.

Related Issues:

@kotarella1110 kotarella1110 pinned this issue Sep 5, 2019
@kotarella1110 kotarella1110 self-assigned this Sep 5, 2019
kotarella1110 added a commit that referenced this issue Sep 12, 2019
added support exporting a Function and a Promise and multiple configurations.

#21, #23
@Kepro
Copy link

Kepro commented Dec 13, 2019

hey, do you have ETA? :) or how close are you?

@kotarella1110
Copy link
Owner Author

@Kepro Sorry 😢
I couldn't this work recently, but I will start working again this week!
The bulk of this work is finished.
This work will be finished in December at the earliest.

@Kepro
Copy link

Kepro commented Dec 15, 2019

@kotarella1110 do you need any help or smth?

@kotarella1110
Copy link
Owner Author

kotarella1110 commented Dec 16, 2019

I need the following help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants