mirror of
https://github.com/flarum/framework.git
synced 2024-12-12 06:03:39 +08:00
Externalize babel helpers.
Saves 2kB after minify+gzip :D
This commit is contained in:
parent
1826d15970
commit
0e15aafed7
|
@ -2,6 +2,7 @@ var gulp = require('flarum-gulp');
|
||||||
|
|
||||||
gulp({
|
gulp({
|
||||||
files: [
|
files: [
|
||||||
|
'node_modules/babel-core/external-helpers.js',
|
||||||
'../bower_components/loader.js/loader.js',
|
'../bower_components/loader.js/loader.js',
|
||||||
'../bower_components/mithril/mithril.js',
|
'../bower_components/mithril/mithril.js',
|
||||||
'../bower_components/jquery/dist/jquery.js',
|
'../bower_components/jquery/dist/jquery.js',
|
||||||
|
@ -16,5 +17,6 @@ gulp({
|
||||||
],
|
],
|
||||||
bootstrapFiles: [],
|
bootstrapFiles: [],
|
||||||
modulePrefix: 'flarum',
|
modulePrefix: 'flarum',
|
||||||
|
externalHelpers: true,
|
||||||
outputFile: 'dist/app.js'
|
outputFile: 'dist/app.js'
|
||||||
});
|
});
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
"private": true,
|
"private": true,
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"gulp": "^3.8.11",
|
"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"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,6 +2,7 @@ var gulp = require('flarum-gulp');
|
||||||
|
|
||||||
gulp({
|
gulp({
|
||||||
files: [
|
files: [
|
||||||
|
'node_modules/babel-core/external-helpers.js',
|
||||||
'../bower_components/loader.js/loader.js',
|
'../bower_components/loader.js/loader.js',
|
||||||
'../bower_components/mithril/mithril.js',
|
'../bower_components/mithril/mithril.js',
|
||||||
'../bower_components/jquery/dist/jquery.js',
|
'../bower_components/jquery/dist/jquery.js',
|
||||||
|
@ -18,5 +19,6 @@ gulp({
|
||||||
],
|
],
|
||||||
bootstrapFiles: [],
|
bootstrapFiles: [],
|
||||||
modulePrefix: 'flarum',
|
modulePrefix: 'flarum',
|
||||||
|
externalHelpers: true,
|
||||||
outputFile: 'dist/app.js'
|
outputFile: 'dist/app.js'
|
||||||
});
|
});
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
"private": true,
|
"private": true,
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"gulp": "^3.8.11",
|
"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"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user