0.1.0 • Published 7 years ago

cordova-webpack-plugin v0.1.0

Weekly downloads
9
License
MIT
Repository
-
Last release
7 years ago

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.