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
How can I get the minified version of ionic-native? #72
Comments
I don't see any minified JS in the package. I'm afraid you would have to minify it yourself for now. |
Yes, I try to self-help using gulp.
Perhaps there is a sequence requirement when concatenating the ts file. Anyone can share how you concat and minify ionic-native to a single js file? |
@deepslux are you using Ionic 2? If so, you do not need to import any JS files to your index.html. You also wouldn't need to minify anything. Importing the plugin you need in your TypeScript files ( |
@ihadeed I'm using Ionic 1. Is this repo meant for Ionic 2? Or anything I need to do to use it in Ionic 1? |
@deepslux I haven't tested it personally. But looking at the code it looks like the Angular 1 usage would be by importing the The methods are also exposed in the variable I wrote a little article explaining the various way of using Ionic Native, but again I haven't really tested it. Hence, why I haven't officially published the article. But you can have a look here: http://jsdev.ca/ionic-native-cordova-plugins-simplified/ |
@deepslux did you manage to get ionic-native working with Ionic 1? I'm having issues setting things update. I've installed ionic-native, but now need to include ionic.native.js in my index.html, but having issues with the path. |
@ihadeed Could you please assist, how should ionic-native be included in index.html. I'm having issues with referencing the correct path to ionic.native.js. I'm using Ionic 1. |
This issue shouldn't be closed! It is not clear how to import the library when working with AngularJS 1.x ngCordova (last reply) is not a valid answer as it doesn't exist anymore. The Thank you. |
Please open a new issue with any questions that you have. Currently there is no ES5 files exported in the Ionic Native package. It is still compatible with AngularJS 1.x but you need something to transform it from ES2015 to ES5 (Babel, Webpack, Rollup...etc).
|
Sorry noob question here. Anyone knows how to get the minified javascript version of the ionic-native?
The text was updated successfully, but these errors were encountered: