2
0
mirror of https://github.com/tenrok/vue-meta.git synced 2026-06-20 07:00:33 +03:00

chore: exclude ssr from webpack

This commit is contained in:
pimlie
2019-03-12 12:13:40 +01:00
parent e371bbfb7e
commit 37563bcc84
3 changed files with 18 additions and 13 deletions
+7 -5
View File
@@ -17,11 +17,13 @@ app.use(webpackDevMiddleware(webpack(WebpackConfig), {
}
}))
fs.readdirSync(__dirname).forEach((file) => {
if (fs.statSync(path.join(__dirname, file)).isDirectory()) {
app.use(rewrite('/' + file + '/*', '/' + file + '/index.html'))
}
})
fs.readdirSync(__dirname)
.filter(file => file !== 'ssr')
.forEach((file) => {
if (fs.statSync(path.join(__dirname, file)).isDirectory()) {
app.use(rewrite('/' + file + '/*', '/' + file + '/index.html'))
}
})
app.use(express.static(__dirname))