Skip to content

1.0.0 Roadmap #23

@kotarella1110

Description

@kotarella1110

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:

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions