get building working with webextension-polyfill as npm dep
This commit is contained in:
12
gulpfile.js
12
gulpfile.js
@@ -20,15 +20,11 @@ gulp.task('postinstall', function (cb) {
|
|||||||
});
|
});
|
||||||
gulp.task('webextension',function(cb){
|
gulp.task('webextension',function(cb){
|
||||||
exec('npm install',{
|
exec('npm install',{
|
||||||
cwd: 'vendor/webextension-polyfill/'
|
cwd: 'node_modules/webextension-polyfill/'
|
||||||
},function(){
|
},function(){
|
||||||
exec('grunt',{
|
var stream = fs.createWriteStream('public/js/browser-polyfill.min.js');
|
||||||
cwd: 'vendor/webextension-polyfill/'
|
stream.on('done',cb);
|
||||||
},function(){
|
fs.createReadStream('node_modules/webextension-polyfill/dist/browser-polyfill.min.js').pipe(stream);
|
||||||
var stream = fs.createWriteStream('public/js/browser-polyfill.min.js');
|
|
||||||
stream.on('done',cb);
|
|
||||||
fs.createReadStream('vendor/webextension-polyfill/dist/browser-polyfill.min.js').pipe(stream);
|
|
||||||
});
|
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
10123
package-lock.json
generated
10123
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user