Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
spring-boot-admin
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
openSource
spring-boot-admin
Commits
23d5d11f
Commit
23d5d11f
authored
Sep 04, 2016
by
Johannes Edmeier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix codacy issues
parent
e9bf3cc7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
12 deletions
+10
-12
webpack.config.js
spring-boot-admin-server-ui-hystrix/webpack.config.js
+10
-12
No files found.
spring-boot-admin-server-ui-hystrix/webpack.config.js
View file @
23d5d11f
'use strict'
;
var
Webpack
=
require
(
'webpack'
),
NgAnnotatePlugin
=
require
(
'ng-annotate-webpack-plugin'
),
var
NgAnnotatePlugin
=
require
(
'ng-annotate-webpack-plugin'
),
CopyWebpackPlugin
=
require
(
'copy-webpack-plugin'
),
CleanWebpackPlugin
=
require
(
'clean-webpack-plugin'
),
ExtractTextPlugin
=
require
(
'extract-text-webpack-plugin'
),
...
...
@@ -9,7 +8,6 @@ var Webpack = require('webpack'),
var
DIST
=
path
.
resolve
(
__dirname
,
'target/dist'
);
var
ROOT
=
__dirname
;
var
isDevServer
=
path
.
basename
(
require
.
main
.
filename
)
===
'webpack-dev-server.js'
;
module
.
exports
=
{
context
:
ROOT
,
...
...
@@ -25,7 +23,7 @@ module.exports = {
'hystrix/hystrixCommand.css'
:
path
.
resolve
(
ROOT
,
'target/hystrix-dashboard/components/hystrixCommand/hystrixCommand.css'
),
'hystrix/hystrixThreadPool'
:
path
.
resolve
(
ROOT
,
'target/hystrix-dashboard/components/hystrixThreadPool/hystrixThreadPool.js'
),
'hystrix/hystrixThreadPool.css'
:
path
.
resolve
(
ROOT
,
'target/hystrix-dashboard/components/hystrixThreadPool/hystrixThreadPool.css'
),
'tsort'
:
path
.
resolve
(
ROOT
,
'target/hystrix-dashboard/js/jquery.tinysort.min.js'
)
,
'tsort'
:
path
.
resolve
(
ROOT
,
'target/hystrix-dashboard/js/jquery.tinysort.min.js'
)
}
},
module
:
{
...
...
@@ -37,14 +35,14 @@ module.exports = {
loaders
:
[
{
test
:
/hystrix-dashboard
\/
js
\/
jquery
\.
tinysort
\.
min
\.
js$/
,
loader
:
'imports?jQuery=jquery'
,
loader
:
'imports?jQuery=jquery'
},{
test
:
/hystrix-dashboard
\/
components
\/
hystrixCommand
\/
hystrixCommand
\.
js$/
,
loaders
:
[
'imports?this=>global&jQuery=jquery&$=jquery&d3&tmpl=microtemplates&tsort'
,
'exports?window.HystrixCommandMonitor'
,
'regexp-replace?{"match": { "pattern": "
\
.
\
./components/hystrixCommand", "flags": "g" }, "replaceWith": "applications-hystrix/components/hystrixCommand"}'
]
,
]
},
{
test
:
/hystrix-dashboard
\/
components
\/
hystrixThreadPool
\/
hystrixThreadPool
\.
js$/
,
loaders
:
[
...
...
@@ -101,13 +99,13 @@ module.exports = {
opts
.
end
=
false
;
proxyRes
.
__pipe
(
sink
,
opts
);
};
var
suffix
_module
=
";
\
n"
var
suffix
Module
=
'
\
n'
;
require
(
'http'
).
get
(
'http://localhost:9000/applications-hystrix/module.js'
,
function
(
r
)
{
r
.
on
(
'data'
,
function
(
chunk
)
{
suffix
_m
odule
+=
chunk
;
suffix
M
odule
+=
chunk
;
});
r
.
on
(
'end'
,
function
()
{
res
.
end
(
suffix
_m
odule
);
res
.
end
(
suffix
M
odule
);
});
});
}
...
...
@@ -121,13 +119,13 @@ module.exports = {
opts
.
end
=
false
;
proxyRes
.
__pipe
(
sink
,
opts
);
};
var
suffix
_module
=
"
\
n"
var
suffix
Css
=
'
\
n'
;
require
(
'http'
).
get
(
'http://localhost:9000/applications-hystrix/module.css'
,
function
(
r
)
{
r
.
on
(
'data'
,
function
(
chunk
)
{
suffix
_module
+=
chunk
;
suffix
Css
+=
chunk
;
});
r
.
on
(
'end'
,
function
()
{
res
.
end
(
suffix
_module
);
res
.
end
(
suffix
Css
);
});
});
}
...
...
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