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:
+7
-5
@@ -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))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user