File tree Expand file tree Collapse file tree 4 files changed +4
-3
lines changed Expand file tree Collapse file tree 4 files changed +4
-3
lines changed File renamed without changes.
Original file line number Diff line number Diff line change 2020 - name : Publish
2121 uses : nogsantos/scp-deploy@master
2222 with :
23- src : ./backend/*
23+ src : ./backend/build/ *
2424 host : ${{ secrets.SSH_HOST }}
2525 remote : ${{ secrets.SSH_BE_DIR }}
2626 port : ${{ secrets.SSH_PORT }}
Original file line number Diff line number Diff line change 44 "description" : " " ,
55 "main" : " index.js" ,
66 "scripts" : {
7- "build" : " webpack && cp -R ./src/public ./build/public && cd ./build" ,
7+ "build" : " webpack && cd ./build" ,
88 "dev" : " webpack && cp -R ./src/public ./build/public && cd ./build && node bundle.js" ,
99 "test" : " echo \" Error: no test specified\" && exit 1"
1010 },
Original file line number Diff line number Diff line change @@ -11,6 +11,8 @@ config.entry = "./src/main.js"
1111// We build for node
1212config . target = "node"
1313
14+ config . mode = "production"
15+
1416// Node module dependencies should not be bundled
1517config . externals = [ nodeExternals ( ) ]
1618
@@ -44,7 +46,6 @@ config.module.rules = [
4446 // Use babel and eslint to build and validate JavaScript
4547 {
4648 test : / \. j s $ / ,
47- exclude : / n o d e _ m o d u l e s / ,
4849 include : [
4950 path . resolve ( __dirname , "src" )
5051 ] ,
You can’t perform that action at this time.
0 commit comments