webpack-titanium-angular

2.2.1 • Public • Published

webpack-titanium-angular

Webpack plugin to compile Angular apps for the Titanium platform.

Getting started

First install the Titanium Angular plugin.

npm i webpack-titanium-angular --save-dev

Now you can use the plugin in your Webpack configuration.

const { TitaniumAngularCompilerPlugin } = require('webpack-titanium-angular');

module.exports = {
  plugins: [
    new TitaniumAngularCompilerPlugin({
      tsConfigPath: '/path/to/tsconfig.json',
      targetPlatform: 'ios'
    })
  ]
}

Since this plugin wraps the Angular Webpack Plugin all options from the original plugin can be used. In addition, the targetPlatform option allows you to specify a platform name (android or ios) which is used to load platform specific Angular components and/or templates.

See the titanium-angular-example project for a complete usage example.

Contributing

Open source contributions are greatly appreciated! If you have a bugfix, improvement or new feature, please create an issue first and submit a pull request against master.

Getting Help

If you have questions about bundling apps for Titanium with Webpack, feel free to reach out on Stackoverflow or the #helpme channel on TiSlack. In case you find a bug, create a new issue or open a new JIRA ticket.

License

Apache License. Version 2.0

Package Sidebar

Install

npm i webpack-titanium-angular

Weekly Downloads

1

Version

2.2.1

License

Apache-2.0

Unpacked Size

24.8 kB

Total Files

9

Last publish

Collaborators

  • cb1kenobi
  • appcelerator