mirror of
https://github.com/flarum/framework.git
synced 2024-12-11 21:43:38 +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({
|
||||
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'
|
||||
});
|
||||
|
|
|
@ -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"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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'
|
||||
});
|
||||
|
|
|
@ -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"
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user