Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
W
webmapsjs
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Glenn Vorhes
webmapsjs
Commits
89bd6ca1
Commit
89bd6ca1
authored
8 years ago
by
Glenn Vorhes
Browse files
Options
Downloads
Patches
Plain Diff
add use strict
parent
142f707a
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/gulp-helpers.js
+5
-0
5 additions, 0 deletions
src/gulp-helpers.js
with
5 additions
and
0 deletions
src/gulp-helpers.js
+
5
−
0
View file @
89bd6ca1
...
@@ -32,6 +32,8 @@ const gulpUtil = require('gulp-util');
...
@@ -32,6 +32,8 @@ const gulpUtil = require('gulp-util');
* @private
* @private
*/
*/
function
_processOutDir
(
outputFile
)
{
function
_processOutDir
(
outputFile
)
{
"
use strict
"
;
let
pathParts
=
outputFile
.
split
(
'
/
'
);
let
pathParts
=
outputFile
.
split
(
'
/
'
);
let
outFileName
=
pathParts
[
pathParts
.
length
-
1
];
let
outFileName
=
pathParts
[
pathParts
.
length
-
1
];
pathParts
.
splice
(
pathParts
.
length
-
1
,
1
);
pathParts
.
splice
(
pathParts
.
length
-
1
,
1
);
...
@@ -49,6 +51,8 @@ function _processOutDir(outputFile) {
...
@@ -49,6 +51,8 @@ function _processOutDir(outputFile) {
* @private
* @private
*/
*/
export
function
bundleEs2015
(
inputFile
,
outFile
,
production
)
{
export
function
bundleEs2015
(
inputFile
,
outFile
,
production
)
{
"
use strict
"
;
if
(
typeof
outFile
==
'
string
'
)
{
if
(
typeof
outFile
==
'
string
'
)
{
outFile
=
_processOutDir
(
outFile
);
outFile
=
_processOutDir
(
outFile
);
}
}
...
@@ -148,6 +152,7 @@ export function processLessFile(inputFile, outputFile) {
...
@@ -148,6 +152,7 @@ export function processLessFile(inputFile, outputFile) {
*/
*/
export
function
bundleEs2015Multiple
(
fileArray
,
production
){
export
function
bundleEs2015Multiple
(
fileArray
,
production
){
"
use strict
"
;
"
use strict
"
;
let
outStream
;
let
outStream
;
for
(
let
f
of
fileArray
){
for
(
let
f
of
fileArray
){
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment