Lee SeJin

Update heroku setting

......@@ -119,5 +119,5 @@ dist
package-lock.json
/uploads
/assets
build
/build
.vscode
\ No newline at end of file
......
{
"git.ignoreLimitWarning": true
}
\ No newline at end of file
......@@ -3,8 +3,12 @@
"version": "1.0.0",
"description": "2021 OSS Project Using node!",
"scripts": {
"start": "node build/init.js",
"build": "npm run build:server && npm run build:assets",
"build:server": "babel src -d build",
"build:assets": "webpack --mode=production",
"dev:server": "nodemon",
"dev:assets": "webpack"
"dev:assets": "webpack --mode=development -w"
},
"repository": {
"type": "git",
......@@ -13,9 +17,6 @@
"author": "Lee SeJin",
"license": "MIT",
"dependencies": {
"@babel/core": "^7.14.0",
"@babel/node": "^7.13.13",
"@babel/preset-env": "^7.14.1",
"axios": "^0.21.1",
"connect-mongo": "^4.4.1",
"dotenv": "^9.0.2",
......@@ -28,9 +29,14 @@
"nodemon": "^2.0.7",
"passport": "^0.4.1",
"passport-github2": "^0.1.12",
"pug": "^3.0.2"
"pug": "^3.0.2",
"regenerator-runtime": "^0.13.7"
},
"devDependencies": {
"@babel/core": "^7.14.0",
"@babel/node": "^7.13.13",
"@babel/preset-env": "^7.14.1",
"@babel/cli": "^7.14.3",
"babel-loader": "^8.2.2",
"css-loader": "^5.2.6",
"eslint-config-prettier": "^8.3.0",
......
import "regenerator-runtime";
import "../scss/styles.scss";
console.log("main");
......
import "regenerator-runtime";
import "dotenv/config";
import "./db";
import "./models/User";
......
......@@ -14,7 +14,7 @@ const app = express();
app.set("view engine","pug");
app.set("views", path.join(__dirname, "views"));
app.set("views", process.cwd() + "/src/views");
app.use(express.static(path.join(__dirname, "static")));
app.use(morgan("dev"));
app.use(express.json());
......
......@@ -8,8 +8,6 @@ module.exports = {
githubInfo: "./src/client/js/githubInfo.js",
search: "./src/client/js/search.js",
},
mode: "development",
watch: true,
plugins: [
new MiniCssExtractPlugin({
filename: "css/styles.css",
......