nuxt-community / koa-template

Starter template for Nuxt.js with KoaJS.
https://koa.nuxtjs.org
382 stars 62 forks source link

How to disable server side babel transpilation? #26

Closed RichAyotte closed 6 years ago

RichAyotte commented 7 years ago

How do I disable the server side babel transpiling?

It is a big performance tax to pay during development.

yarn run v1.0.2
$ backpack dev

 DONE  Compiled successfully in 1401ms                                                                                                                                15:41:50

Server listening on 127.0.0.1:3000
Build completed in 79.273s

 DONE  Compiled successfully in 79278ms                                                                                                                               15:43:17

There seems to be a frontend build followed by a backend build which takes over a minute on my 6 core / 16GB RAM system. Any insight on what's building here?

This question is available on Nuxt.js community (#c12)
maodouchen commented 6 years ago

i have the same problem? do you have any solution?

atinux commented 6 years ago

Hi,

You can remove backpack.config.js and update your package.json to run node server/index.js indead.