-
Notifications
You must be signed in to change notification settings - Fork 0
/
gulpfile.babel.js
58 lines (42 loc) · 1.79 KB
/
gulpfile.babel.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
/*
The build is provided by the Modern Web Dev Build: https://github.com/dsebastien/modernWebDevBuild
*/
"use strict";
import gulp from "gulp";
import modernWebDevBuild from "modern-web-dev-build";
let options = {};
/*
(Optional) distEntryPoint (default: core/boot.js)
Define the entry point for the creation of the production bundle.
The extension does not need to be specified (SystemJS is used to load the file)
*/
// options.distEntryPoint = "core/core.bootstrap";
/*
(Optional) minifyProductionJSBundle (default: true)
Set this option to false, if you don't want a minified JS bundle.
*/
options.minifyProductionHTML = false; // HTML minification is currently not supported by Angular 2 beta: https://github.com/dsebastien/modernWebDevBuild/issues/67
/*
(Optional) minifyProductionJSBundle (default: true)
Set this option to false, if you don't want a minified JS bundle.
*/
//options.minifyProductionJSBundle = false;
/*
(Optional) mangleProductionJSBundle (default: true)
Set this option to false, if you don't want a mangled JS bundle.
*/
options.mangleProductionJSBundle = false; // Mangled JS bundles are currently not supported by Angular 2 beta: https://github.com/angular/angular/issues/6380
/*
(Optional) useJSPM (default: true)
Set this option to false, if you don't want to use the JSPM API to create the production bundle.
If you disable the usage of JSPM, then the SystemJS builder API will be used to create the production bundle.
(more: https://www.npmjs.com/package/systemjs-builder)
*/
//options.useJSPM = false;
/*
(Optional) systemjsConfigurationFile (default: jspm.conf.js)
Set the file name for the configuration file for SystemJS.
(read also: useJSPM)
*/
//options.systemjsConfigurationFile = "my-systemjs.config.js";
modernWebDevBuild.registerTasks(gulp, options);