mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2026-05-20 00:06:24 +08:00
Shit
This commit is contained in:
+2
-2
@@ -13,14 +13,14 @@ function compile(watch) {
|
||||
var bundler = watchify(browserify()
|
||||
.require('./src/index.js', {
|
||||
entry: true,
|
||||
expose: 'ionic-native'
|
||||
expose: 'cordova-wrap'
|
||||
})
|
||||
.transform(babel, {presets: ['es2015']}));
|
||||
|
||||
function rebundle() {
|
||||
bundler.bundle()
|
||||
.on('error', function(err) { console.error(err); this.emit('end'); })
|
||||
.pipe(source('ionic-native.js'))
|
||||
.pipe(source('cordova-wrap.js'))
|
||||
.pipe(buffer())
|
||||
.pipe(sourcemaps.init({ loadMaps: true }))
|
||||
.pipe(sourcemaps.write('./'))
|
||||
|
||||
Reference in New Issue
Block a user