Skip to content

Commit 83dc9bd

Browse files
committed
added webpack dep
1 parent 359dc8d commit 83dc9bd

File tree

3 files changed

+2017
-5
lines changed

3 files changed

+2017
-5
lines changed

package.json

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,28 @@
11
{
22
"name": "foodie-site",
33
"version": "1.0.0",
4-
"main": "index.js",
4+
"private": true,
55
"scripts": {
66
"sanity-dev": "sanity dev",
77
"sanity-start": "sanity start",
88
"sanity-build": "sanity build",
99
"sanity-deploy": "sanity deploy",
1010
"sanity-deploy-graphql": "sanity graphql deploy",
11-
"babel": "babel src --watch -d js"
11+
"babel": "babel src --watch -d js",
12+
"build": "webpack --watch"
1213
},
1314
"repository": "https://github.com/raiyanu/foodie-site.git",
1415
"license": "MIT",
15-
"dependencies": {
16+
"devDependencies": {
1617
"@babel/cli": "^7.25.9",
1718
"@babel/core": "^7.26.0",
18-
"@babel/preset-env": "^7.26.0"
19-
}
19+
"@babel/preset-env": "^7.26.0",
20+
"webpack": "^5.96.1",
21+
"webpack-cli": "^5.1.4"
22+
},
23+
"author": {
24+
"name": "Raiyan Uddin",
25+
"email": "[email protected]"
26+
},
27+
"dependencies": {}
2028
}

webpack.config.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
const path = require('path');
2+
3+
module.exports = {
4+
entry: './src/index.js',
5+
output: {
6+
filename: 'index.js',
7+
path: path.resolve(__dirname, 'js'),
8+
},
9+
};

0 commit comments

Comments
 (0)