Skip to content

Commit 1fd3c31

Browse files
committed
Created Repo
0 parents  commit 1fd3c31

21 files changed

+11493
-0
lines changed

.babelrc

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"presets": ["env", "react", ("targets": { "browsers": ["last 2 versions"] })],
3+
"plugins": [
4+
"syntax-dynamic-import",
5+
[
6+
"import-inspector",
7+
{
8+
"serverSideRequirePath": true
9+
}
10+
]
11+
]
12+
}

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/node_modules

.vscode/launch.json

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
// Use IntelliSense to learn about possible attributes.
3+
// Hover to view descriptions of existing attributes.
4+
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
5+
"version": "0.2.0",
6+
"configurations": [
7+
{
8+
"type": "chrome",
9+
"request": "launch",
10+
"name": "Launch Chrome against localhost",
11+
"url": "http://localhost:8080",
12+
"webRoot": "${workspaceFolder}"
13+
}
14+
]
15+
}

.vscode/settings.json

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
{
2+
}

config/paths.js

+44
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
'use strict';
2+
const path = require('path');
3+
const fs = require('fs');
4+
const url = require('url');
5+
6+
// Make sure any symlinks in the project folder are resolved:
7+
// https://github.com/facebookincubator/create-react-app/issues/637
8+
const appDirectory = fs.realpathSync(process.cwd());
9+
const resolveApp = relativePath => path.resolve(appDirectory, relativePath);
10+
11+
const envPublicUrl = process.env.PUBLIC_URL;
12+
13+
function ensureSlash(path, needsSlash) {
14+
const hasSlash = path.endsWith('/');
15+
if (hasSlash && !needsSlash) {
16+
return path.substr(path, path.length - 1);
17+
} else if (!hasSlash && needsSlash) {
18+
return `${path}/`;
19+
} else {
20+
return path;
21+
}
22+
}
23+
24+
const getPublicUrl = appPackageJson =>
25+
envPublicUrl || require(appPackageJson).homepage;
26+
27+
// We use `PUBLIC_URL` environment variable or "homepage" field to infer
28+
// "public path" at which the app is served.
29+
// Webpack needs to know it to put the right <script> hrefs into HTML even in
30+
// single-page apps that may serve index.html for nested URLs like /todos/42.
31+
// We can't use a relative path in HTML because we don't want to load something
32+
// like /todos/42/static/js/bundle.7289d.js. We have to know the root.
33+
function getServedPath(appPackageJson) {
34+
const publicUrl = getPublicUrl(appPackageJson);
35+
const servedUrl =
36+
envPublicUrl || (publicUrl ? url.parse(publicUrl).pathname : '/');
37+
return ensureSlash(servedUrl, true);
38+
}
39+
40+
module.exports = {
41+
appPackageJson: resolveApp('package.json'),
42+
publicUrl: getPublicUrl(resolveApp('package.json')),
43+
servedPath: getServedPath(resolveApp('package.json'))
44+
};

dist/cssorderproblem.69e6.bundle.js

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.html

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
<!DOCTYPE html>
2+
3+
4+
5+
6+
7+
<html lang="en">
8+
9+
<head>
10+
<meta charset="utf-8">
11+
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
12+
<meta name="theme-color" content="#000000">
13+
14+
<title>React App</title>
15+
16+
<link href="styles/0.3d07.css" rel="stylesheet" />
17+
18+
<link href="styles/cssorderproblem.cd45.css" rel="stylesheet" />
19+
20+
21+
</head>
22+
23+
<body>
24+
25+
<div id="app">
26+
<div style="text-align:center">Loading...</div>
27+
</div>
28+
29+
<script src="vendors~cssorderproblem.69e6.bundle_dynamic.js"></script>
30+
31+
<script src="cssorderproblem.69e6.bundle.js"></script>
32+
33+
34+
</body>
35+
36+
</html>

dist/styles/0.3d07.css

+6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)