diff --git a/dist/app.js b/docs/app.js
similarity index 100%
rename from dist/app.js
rename to docs/app.js
diff --git a/dist/index.html b/docs/index.html
similarity index 97%
rename from dist/index.html
rename to docs/index.html
index 256853e..5ef7c9e 100644
--- a/dist/index.html
+++ b/docs/index.html
@@ -8,7 +8,7 @@
RandomPicker
-
+
diff --git a/dist/style.css b/docs/style.css
similarity index 100%
rename from dist/style.css
rename to docs/style.css
diff --git a/package.json b/package.json
index a6f8dee..ad30cb6 100644
--- a/package.json
+++ b/package.json
@@ -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"
},
diff --git a/webpack.config.js b/webpack.config.js
index 4ec241f..aa93478 100644
--- a/webpack.config.js
+++ b/webpack.config.js
@@ -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