Skip to content

Commit 311da4b

Browse files
committed
Paths changed from public -> dist for final output
I’m actually unsure why these changed. I think nwb now prescribes a particular directory name by default but need to dig into this further.
1 parent c768de5 commit 311da4b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

server.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ var routes = require('./src/routes')
1010

1111
var app = express()
1212
app.set('view engine', 'ejs')
13-
app.set('views', process.cwd() + '/src/views')
13+
app.set('views', process.cwd() + '/dist/views')
1414
app.set('port', (process.env.PORT || 5000))
15-
app.use(express.static('public'))
15+
app.use(express.static('dist'))
1616

1717

1818
app.get(['/', '/news'], function(req, res) {

sw-precache-config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33
"sw-toolbox.js",
44
"runtime-caching.js"
55
],
6-
"stripPrefix": "public/",
6+
"stripPrefix": "dist/",
77
"verbose": true
88
}

0 commit comments

Comments
 (0)