# How to deploy your app

First of all you need to know that plasma is created to run in two way :&#x20;

Electron : without compiling

Vanilla : with compiling

## Vanilla :&#x20;

Vanilla is simple html based , that mean you don't need to have a specific hosting system, but that mean lot of restriction (specially about nodejs) this is why we have added webpack.&#x20;

### Dev :&#x20;

Everytime you perform a change, you need to compile your app using webpack

The package.json contain a script called build:dev who gonna compile your code for dev.&#x20;

### Production :

The way to compile is similar to dev but launch the script build:prod instead

### Deploy :

Copy assets folder, index.html, env.js , final.js and every xNumbered.final.js to your host and that's it

## Electron :

If you enable nodejs to your vue you don't need to compile everytime. In that case edit index.html to src main.js instead of final.js

```javascript
            webPreferences: {
                //preload: path.join(__dirname, 'app', 'template', theme, 'assets', 'js', 'preloader.js'),
                nodeIntegration: true,
                contextIsolation: false,
                enableRemoteModule: true
            },
```

Don't forget to add nodeInteration end RemoteModule to your BrowserWindow configuration

### Warning

On electron don't forget to add ".js " on import&#x20;
