Externalize babel helpers.

Saves 2kB after minify+gzip :D
This commit is contained in:
Toby Zerner 2015-06-08 15:28:45 +09:30
parent 1826d15970
commit 0e15aafed7
4 changed files with 8 additions and 2 deletions

View File

@ -2,6 +2,7 @@ var gulp = require('flarum-gulp');
gulp({
files: [
'node_modules/babel-core/external-helpers.js',
'../bower_components/loader.js/loader.js',
'../bower_components/mithril/mithril.js',
'../bower_components/jquery/dist/jquery.js',
@ -16,5 +17,6 @@ gulp({
],
bootstrapFiles: [],
modulePrefix: 'flarum',
externalHelpers: true,
outputFile: 'dist/app.js'
});

View File

@ -2,6 +2,7 @@
"private": true,
"devDependencies": {
"gulp": "^3.8.11",
"flarum-gulp": "git+https://github.com/flarum/gulp.git"
"flarum-gulp": "git+https://github.com/flarum/gulp.git",
"babel-core": "^5.0.0"
}
}

View File

@ -2,6 +2,7 @@ var gulp = require('flarum-gulp');
gulp({
files: [
'node_modules/babel-core/external-helpers.js',
'../bower_components/loader.js/loader.js',
'../bower_components/mithril/mithril.js',
'../bower_components/jquery/dist/jquery.js',
@ -18,5 +19,6 @@ gulp({
],
bootstrapFiles: [],
modulePrefix: 'flarum',
externalHelpers: true,
outputFile: 'dist/app.js'
});

View File

@ -2,6 +2,7 @@
"private": true,
"devDependencies": {
"gulp": "^3.8.11",
"flarum-gulp": "git+https://github.com/flarum/gulp.git"
"flarum-gulp": "git+https://github.com/flarum/gulp.git",
"babel-core": "^5.0.0"
}
}