This repository was archived by the owner on Mar 24, 2023. It is now read-only.
File tree 8 files changed +13
-14
lines changed
8 files changed +13
-14
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ serve_ship:
23
23
24
24
.state/build_ship : .state/package webpack* postcss* $(shell find src -type f)
25
25
rm -rf dist
26
- ` yarn bin` /webpack --config webpack.config.js --env ship --mode production
26
+ ` yarn bin` /webpack --config webpack.config.js --env production --mode production
27
27
@mkdir -p .state
28
28
@touch .state/build_ship
29
29
Original file line number Diff line number Diff line change
1
+ module . exports = {
2
+ ENVIRONMENT : "production" ,
3
+ API_ENDPOINT : "/api/v1" ,
4
+ WEBPACK_SCRIPTS : [
5
+ "https://unpkg.com/react@16/umd/react.production.min.js" ,
6
+ "https://unpkg.com/react-dom@16/umd/react-dom.production.min.js"
7
+ ]
8
+ } ;
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ export default class Linter extends React.Component {
32
32
33
33
linkFor ( error ) {
34
34
return error . links && error . links . length > 0 ? (
35
- < a target = "_blank" href = { error . links [ 0 ] } >
35
+ < a target = "_blank" href = { error . links [ 0 ] } rel = "noopener noreferrer" >
36
36
< span className = { `icon u-linkIcon--blue flex-auto u-marginLeft--small clickable` } > </ span >
37
37
</ a >
38
38
) : null ;
Original file line number Diff line number Diff line change @@ -43,7 +43,6 @@ class NavBar extends React.Component {
43
43
44
44
getNavItems ( ) {
45
45
const token = true ;
46
-
47
46
return [ ! token ? null :
48
47
{
49
48
id : 0 ,
Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ export default class NavItem extends React.Component {
53
53
return linkTo
54
54
? < Link className = { linkClassName } to = { linkTo } tabIndex = "-1" > { linkContent } </ Link >
55
55
: href ?
56
- < a href = { href } target = "_blank" tabIndex = "-1" > { linkContent } </ a >
56
+ < a href = { href } target = "_blank" tabIndex = "-1" rel = "noopener noreferrer" > { linkContent } </ a >
57
57
: options . isButton ?
58
58
< button className = { `Button ${ options . buttonClassName || "" } ` } tabIndex = "-1" > { linkContent } </ button >
59
59
: < a tabIndex = "-1" > { linkContent } </ a > ;
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ export default class PopoverItem extends React.Component {
30
30
{ label }
31
31
</ Link >
32
32
:
33
- < a className = "PopoverLabel u-noSelect" href = { href } target = "_blank" >
33
+ < a className = "PopoverLabel u-noSelect" href = { href } target = "_blank" rel = "noopener noreferrer" >
34
34
{ label }
35
35
</ a >
36
36
}
Original file line number Diff line number Diff line change @@ -127,7 +127,7 @@ module.exports = function (env) {
127
127
} else if ( env === "shipDev" || env === "configOnly" ) {
128
128
var configEnv = require ( "./webpack.config.configOnly" ) ;
129
129
return webpackMerge ( common , configEnv ) ;
130
- } else if ( env === "ship " ) {
130
+ } else if ( env === "production " ) {
131
131
var configEnv = require ( "./webpack.config.distConfigOnly" ) ;
132
132
return webpackMerge ( common , configEnv ) ;
133
133
} else {
You can’t perform that action at this time.
0 commit comments