cordova-webpack-plugin

0.1.0 • Public • Published

Cordova Webpack Plugin

A simple plugin to output your Webpack project as a Cordova project.

Installing

npm install cordova-webpack-plugin --save

Usage

Add the plugin to your required modules in webpack.config.js

var CordovaWebpackPlugin = require('cordova-webpack-plugin');

Add the plugin to your Webpack plugins

config.plugins = [
    new CordovaWebpackPlugin({
        output: 'dist',                 /* Specify the output folder */
        config: 'cordova-config.xml',   /* The source config for cordova which will be copied to the output folder as 'config.xml' */
        index: 'src/static/index.html', /* The source index.html which will be copied to the <output folder>/www/ folder as 'index.html' */
        disabled: false                 /* (optional) Boolean value to conditionally run the plugin */
    })
];

License

MIT

Note

This plugin is based on webpack-cordova-plugin. It did not do what I wanted and the plugin seemed to be abandoned, so I made my own.

Readme

Keywords

none

Package Sidebar

Install

npm i cordova-webpack-plugin

Weekly Downloads

1

Version

0.1.0

License

MIT

Last publish

Collaborators

  • gideon