Manual Configuration
Last updated
Last updated
This information is intended for advanced users who wish to configure a Vuido application manually. In most cases the automatic should be enough.
You need to install the package in order to use Vuido in you application:
In order to use single-file components, you will also need and . The configuration is similar to a web application using Vue.js, with some important differences:
The must be used instead of the standard vue-template-compiler which is used by vue-loader by default. Use the compiler
option to pass the Vuido compiler to vue-loader. Note that this option requires vue-loader v15 or newer.
Set the target option to 'node' to ensure that the compiled script can be run correctly by Node.js.
Use webpack.ExternalsPlugin to exclude libui-node and other native modules from the bundle.
Example of webpack configuration using Vuido:
The basic Babel configuration which compiles the scripts for Node.js v8 looks like this:
You also need to install , and .