2
0
mirror of https://github.com/tenrok/vue-meta.git synced 2026-06-14 13:42:26 +03:00

chore: serve dist dir statically in dev server

This commit is contained in:
pimlie
2021-04-03 19:18:41 +02:00
parent ed6ba9fa94
commit bcf8353d73
+1 -1
View File
@@ -9,7 +9,6 @@ const webpackConfig = require('./webpack.config')
const jiti = require('./jiti')
const { renderPage } = jiti('./ssr/server.js')
// const { renderPage } = require('./ssr/server')
const app = express()
@@ -34,6 +33,7 @@ fs.readdirSync(__dirname)
app.use(express.static(path.join(__dirname, '_static')))
app.use(express.static(__dirname))
app.use('/_static/dist', express.static(path.join(__dirname, '../dist')))
app.use((req, res, next) => {
// Return empty css/javascript files if the file didnt exists