bundle everything
This commit is contained in:
1
dist/index.html
vendored
1
dist/index.html
vendored
@@ -1 +0,0 @@
|
|||||||
../index.html
|
|
||||||
1
dist/site.css
vendored
1
dist/site.css
vendored
@@ -1 +0,0 @@
|
|||||||
../site.css
|
|
||||||
@@ -7,12 +7,7 @@
|
|||||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div id="mount">
|
<div id="mount"><noscript>I don't like javascript, either.</noscript></div>
|
||||||
<noscript>I don't like javascript, either.</noscript>
|
|
||||||
</div>
|
|
||||||
<script src="./node_modules/react/umd/react.development.js"></script>
|
|
||||||
<script src="./node_modules/react-dom/umd/react-dom.development.js"></script>
|
|
||||||
|
|
||||||
<script type="text/javascript" src="bundle.js"></script>
|
<script type="text/javascript" src="bundle.js"></script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
29
site.css
29
site.css
@@ -2,26 +2,39 @@ html,
|
|||||||
body {
|
body {
|
||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
color: #335;
|
color: #335;
|
||||||
font-family: sans-serif;
|
font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Helvetica,Arial,sans-serif;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
hr {
|
|
||||||
border: 1px solid #eef;
|
|
||||||
width: 100%;
|
|
||||||
}
|
|
||||||
|
|
||||||
div {
|
div {
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
}
|
}
|
||||||
|
|
||||||
h1 {
|
h1 {
|
||||||
color: #69c;
|
color: #69c;
|
||||||
font-size: 2em;
|
font-size: 45px;
|
||||||
margin: 1em;
|
font-weight: normal;
|
||||||
|
line-height: 60px;
|
||||||
|
margin-bottom: 0;
|
||||||
|
margin-left: 30px;
|
||||||
|
margin-right: 30px;
|
||||||
|
margin-top: 30px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
h2 {
|
||||||
|
color: #666;
|
||||||
|
font-size: 20px;
|
||||||
|
font-weight: normal;
|
||||||
|
line-height: 30px;
|
||||||
|
margin-bottom: 30px;
|
||||||
|
margin-left: 30px;
|
||||||
|
margin-right: 30px;
|
||||||
|
margin-top: 0px;
|
||||||
|
border-bottom: 1px solid #eef;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
.Grid-row {
|
.Grid-row {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
|
|||||||
@@ -37,9 +37,9 @@ export class Root extends React.PureComponent<Props, State> {
|
|||||||
|
|
||||||
render() {
|
render() {
|
||||||
return <div className="Root">
|
return <div className="Root">
|
||||||
<h1>Ski</h1>
|
|
||||||
<hr />
|
|
||||||
{ this._bigPicture() }
|
{ this._bigPicture() }
|
||||||
|
<h1>Ski</h1>
|
||||||
|
<h2>CMH Galena</h2>
|
||||||
<Grid
|
<Grid
|
||||||
images={ this.state.images }
|
images={ this.state.images }
|
||||||
onImageSelected={ this._onImageSelected }
|
onImageSelected={ this._onImageSelected }
|
||||||
|
|||||||
@@ -30,13 +30,4 @@ module.exports = {
|
|||||||
{ enforce: "pre", test: /\.js$/, loader: "source-map-loader" }
|
{ enforce: "pre", test: /\.js$/, loader: "source-map-loader" }
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
|
||||||
// When importing a module whose path matches one of the following, just
|
|
||||||
// assume a corresponding global variable exists and use that instead.
|
|
||||||
// This is important because it allows us to avoid bundling all of our
|
|
||||||
// dependencies, which allows browsers to cache those libraries between builds.
|
|
||||||
externals: {
|
|
||||||
"react": "React",
|
|
||||||
"react-dom": "ReactDOM"
|
|
||||||
}
|
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user