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

feat: convert to ts (wip)

This commit is contained in:
pimlie
2020-06-01 01:05:59 +02:00
parent 303eae1603
commit 28d3fc1923
106 changed files with 4478 additions and 5037 deletions
+11 -9
View File
@@ -10,18 +10,20 @@ import { renderPage } from './ssr/server'
const app = express()
app.use(webpackDevMiddleware(webpack(WebpackConfig), {
publicPath: '/__build__/',
writeToDisk: true,
stats: {
colors: true,
chunks: false
}
}))
app.use(
webpackDevMiddleware(webpack(WebpackConfig), {
publicPath: '/__build__/',
writeToDisk: true,
stats: {
colors: true,
chunks: false,
},
})
)
fs.readdirSync(__dirname)
.filter(file => file !== 'ssr')
.forEach((file) => {
.forEach(file => {
if (fs.statSync(path.join(__dirname, file)).isDirectory()) {
app.use(rewrite(`/${file}/*`, `/${file}/index.html`))
}