Skip to content

Commit

Permalink
fix(GitHub Page): Correct url routing
Browse files Browse the repository at this point in the history
  • Loading branch information
hypery2k committed Mar 2, 2019
1 parent ee6981b commit 898cd7b
Show file tree
Hide file tree
Showing 13 changed files with 107 additions and 93 deletions.
12 changes: 12 additions & 0 deletions .config/webpack.github.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
var webpackMerge = require('webpack-merge');
var commonConfig = require('./webpack.prod.js');
var helpers = require('./helpers');

module.exports = webpackMerge(commonConfig, {
output: {
path: helpers.root('docs'),
publicPath: 'https://hypery2k.github.io/ngx-vis',
filename: '[name].[hash].js',
chunkFilename: '[id].[hash].chunk.js'
}
});
4 changes: 2 additions & 2 deletions .config/webpack.prod.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ module.exports = webpackMerge(commonConfig, {
devtool: 'source-map',

output: {
path: helpers.root('docs'),
publicPath: '',
path: helpers.root('dist'),
publicPath: './',
filename: '[name].[hash].js',
chunkFilename: '[id].[hash].chunk.js'
},
Expand Down

Large diffs are not rendered by default.

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@
</head>
<body>
<example-app>Loading...</example-app>
<script type="text/javascript" src="polyfills.b9286f95825b0f0f640f.js"></script><script type="text/javascript" src="vendor.b9286f95825b0f0f640f.js"></script><script type="text/javascript" src="app.b9286f95825b0f0f640f.js"></script></body>
<script type="text/javascript" src="https://hypery2k.github.io/ngx-vis/polyfills.057775f6a700d61b46d6.js"></script><script type="text/javascript" src="https://hypery2k.github.io/ngx-vis/vendor.057775f6a700d61b46d6.js"></script><script type="text/javascript" src="https://hypery2k.github.io/ngx-vis/app.057775f6a700d61b46d6.js"></script></body>
</html>
83 changes: 83 additions & 0 deletions docs/polyfills.057775f6a700d61b46d6.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions docs/polyfills.057775f6a700d61b46d6.js.map

Large diffs are not rendered by default.

83 changes: 0 additions & 83 deletions docs/polyfills.b9286f95825b0f0f640f.js

This file was deleted.

1 change: 0 additions & 1 deletion docs/polyfills.b9286f95825b0f0f640f.js.map

This file was deleted.

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions docs/vendor.057775f6a700d61b46d6.js.map

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion docs/vendor.b9286f95825b0f0f640f.js.map

This file was deleted.

2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"flow.tslint": "tslint --project tsconfig.json --exclude **/*.d.ts",
"flow.lint": "npm run flow.eslint && npm run flow.tslint",
"flow.build:prod": "cross-env NODE_ENV=production webpack --config .config/webpack.prod.js --progress --color",
"flow.build:github-pages": "cross-env NODE_ENV=production webpack --config .config/webpack.github.js --progress --color",
"flow.build:dev": "webpack --progress --color",
"flow.serve:dev": "webpack-dev-server --hot --inline --colors",
"flow.serve:prod": "cross-env NODE_ENV=production webpack-dev-server --config .config/webpack.prod.js --hot --inline --colors",
Expand All @@ -25,6 +26,7 @@
"check": "check-audit --ignoreLow",
"build": "npm run flow.compile",
"build:demo": "rm -rf docs/* && npm run flow.build:prod",
"build:docs": "rm -rf docs/* && npm run flow.build:github-pages",
"pretest": "npm run flow.lint",
"test": "karma start --browsers=ChromeHeadless",
"test:watch": "cross-env NODE_ENV=test karma start --auto-watch --no-single-run",
Expand Down

0 comments on commit 898cd7b

Please sign in to comment.