Skip to content
This repository was archived by the owner on Sep 14, 2022. It is now read-only.

Commit ba25993

Browse files
committed
feat: add gh-pages
1 parent 8675604 commit ba25993

File tree

3 files changed

+162
-1
lines changed

3 files changed

+162
-1
lines changed

package-lock.json

Lines changed: 157 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@
1515
"check": "tsc --noEmit",
1616
"//gen": "gen",
1717
"gen:libs": "ts-node scripts/gen-libs.ts",
18-
"clear": "ts-node scripts/rm-rf.ts ./dist "
18+
"clear": "ts-node scripts/rm-rf.ts ./dist ",
19+
"//deploy": "deploy",
20+
"deploy": "npm run build && gh-pages -d dist"
1921
},
2022
"repository": {
2123
"type": "git",
@@ -56,6 +58,7 @@
5658
"css-loader": "^4.3.0",
5759
"dts-minify": "^0.2.0",
5860
"eslint-config-prettier": "^6.12.0",
61+
"gh-pages": "^3.1.0",
5962
"html-loader": "^1.3.1",
6063
"html-webpack-plugin": "^4.5.0",
6164
"json-loader": "^0.5.7",

webpack.prod.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ module.exports = merge(baseConfig, {
3030
plugins: [new BundleAnalyzerPlugin()],
3131
output: {
3232
filename: "[name].[hash].js",
33+
chunkFilename: "[name].[hash].js",
3334
publicPath: "./",
3435
},
3536
});

0 commit comments

Comments
 (0)