Skip to content

Commit

Permalink
Prepare for GitHub Pages deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
kiss42 committed Nov 12, 2024
1 parent 312234a commit 350a447
Show file tree
Hide file tree
Showing 4 changed files with 118 additions and 13 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
node_modules
.env
104 changes: 103 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 9 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,14 @@
"version": "1.0.0",
"description": "",
"main": "index.js",
"homepage": "https://kiss42.github.io/Self-Discovery",
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject"
"predeploy": "npm run build",
"deploy": "gh-pages -d build",
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject"
},
"dependencies": {
"@mistralai/mistralai": "^1.3.0",
Expand All @@ -34,6 +37,7 @@
]
},
"devDependencies": {
"cross-env": "^7.0.3"
"cross-env": "^7.0.3",
"gh-pages": "^6.2.0"
}
}
11 changes: 4 additions & 7 deletions webpack.config.js
Original file line number Diff line number Diff line change
@@ -1,20 +1,17 @@
const path = require('path');

// webpack.config.js
module.exports = {
// Add other Webpack configurations as needed
// Other configurations...

module: {
rules: [
{
test: /\.js$/,
enforce: 'pre',
use: ['source-map-loader'],
exclude: [
/node_modules\/html2pdf\.js/, // Exclude html2pdf.js to prevent the warning
/node_modules\/html2pdf\.js/ // Ignore html2pdf.js for source maps
],
},
],
},
resolve: {
extensions: ['.js', '.jsx'],
},
};

0 comments on commit 350a447

Please sign in to comment.