Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
deb-icingaweb2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
packaging
deb-icingaweb2
Commits
c1ab774e
Commit
c1ab774e
authored
Jul 29, 2019
by
Markus Frosch
📣
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve javascript uglify handling
Auto detect javascript files.
parent
c3484c99
Pipeline
#4436
passed with stages
in 9 minutes and 37 seconds
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
debian/uglify/Makefile
debian/uglify/Makefile
+4
-4
No files found.
debian/uglify/Makefile
View file @
c1ab774e
...
...
@@ -3,9 +3,9 @@
#
# Fallback to yui-compressor if uglifyjs is not available.
SOURCE_PATH
=
../../public/js/vendor
SOURCES
=
jquery-1.11.0.js jquery-2.1.0.js jquery.sparkline.js jquery.tipsy.js
FILES
=
$(
patsubst
%.js,%.min.js,
$(SOURCES)
)
SOURCE_PATH
:
=
../../public/js/vendor
SOURCES
:=
$(
filter-out
%.min.js,
$(
notdir
$(
wildcard
$(SOURCE_PATH)
/
*
.js
)))
MINIFIED
:
=
$(
patsubst
%.js,%.min.js,
$(SOURCES)
)
UGLIFY_OPTS
=
-m
"toplevel=true"
-r
'$$,require,exports'
-c
"hoist_funs=false,loops=false,unused=false"
...
...
@@ -18,7 +18,7 @@ clean:
source
:
$(SOURCES)
uglify
:
$(
FILES
)
uglify
:
$(
MINIFIED
)
%.min.js
:
%.js
$(
eval
map :
=
$(
patsubst
%.min.js,%.min.map,
$@
))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment