File tree Expand file tree Collapse file tree 3 files changed +11
-3
lines changed Expand file tree Collapse file tree 3 files changed +11
-3
lines changed Original file line number Diff line number Diff line change 6
6
"scripts" : {
7
7
"test" : " echo \" Error: no test specified\" && exit 1" ,
8
8
"server-start" : " node -r dotenv/config server/services/graphqlService.js dotenv_config_path=server/.env" ,
9
- "client-build" : " webpack --mode production" ,
10
- "client-dev" : " webpack --mode development" ,
9
+ "client-build" : " node_modules/.bin/ webpack --mode production --config ./public/webpack.config.js " ,
10
+ "client-dev" : " node_modules/.bin/ webpack --mode development --config ./public/webpack.config.js " ,
11
11
"client-start" : " node_modules/.bin/http-server ./public/dist -c-1"
12
12
},
13
13
"keywords" : [],
Original file line number Diff line number Diff line change 1
1
const Constants = ( ) => {
2
2
return {
3
3
GRAPHQL_URL :
4
- "https ://4j844x5vu5.execute-api.ap-south-1.amazonaws.com /graphql" ,
4
+ "http ://localhost:4000 /graphql" ,
5
5
} ;
6
6
} ;
7
7
Original file line number Diff line number Diff line change
1
+ const path = require ( "path" ) ;
2
+ console . log ( "Path in webpack config file" , __dirname ) ;
3
+
1
4
module . exports = {
5
+ // Context is most important when running webpack from package.json outside ./public
6
+ context : path . resolve ( __dirname , "./src" ) ,
7
+
2
8
devtool : "source-map" ,
9
+ entry : "./index.js" ,
3
10
output : {
11
+ path : path . join ( __dirname , "./dist" ) ,
4
12
assetModuleFilename : "images/[name][ext][query]" ,
5
13
} ,
6
14
module : {
You can’t perform that action at this time.
0 commit comments