Skip to content

Commit

Permalink
dist を docs に変更
Browse files Browse the repository at this point in the history
  • Loading branch information
motooka committed Jul 4, 2021
1 parent e628000 commit a3808e4
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 4 deletions.
File renamed without changes.
2 changes: 1 addition & 1 deletion dist/index.html → docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<meta property="og:title" content="RandomPicker"/>
<meta property="og:description" content="イケてるくじ引きツール:入力した候補の中から1つを神が選んでくれるッ…!!"/>
<title>RandomPicker</title>
<script type="text/javascript" src="app.js" defer></script>
<script type="text/javascript" src="app.js" defer></script>
<link rel="stylesheet" href="./style.css"/>
</head>
<body>
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"main": "app.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"copy-static-resources": "cp index.html dist/; cp style.css dist/",
"copy-static-resources": "cp index.html docs/; cp style.css docs/",
"build": "npm run copy-static-resources && npx tsc && webpack --mode production",
"serve": "npm run copy-static-resources && npx tsc && npx webpack serve --mode production"
},
Expand Down
4 changes: 2 additions & 2 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ const path = require('path');
module.exports = {
entry: './compiled/app.js',
output: {
path: path.resolve(__dirname, 'dist'),
path: path.resolve(__dirname, 'docs'),
filename: 'app.js',
},
devServer: {
contentBase: path.join(__dirname, 'dist'),
contentBase: path.join(__dirname, 'docs'),
compress: true,
port: 20080,
inline: false
Expand Down

0 comments on commit a3808e4

Please sign in to comment.