ITF User Settings Web App
# install dependencies
npm install
# serve with hot reload at localhost:8080
npm run dev
# build for production with minification
npm run build
# build for production and view the bundle analyzer report
npm run build --report
- Create the server.js file in the root directory in order to serve the /dist folder through a simple express server
var express = require('express');
var path = require('path');
var serveStatic = require('serve-static');
app = express();
app.use(serveStatic(__dirname + "/dist"));
var port = process.env.PORT || 5000;
app.listen(port);
console.log('server started ' + port);
- Add the Procfile
web: node server.js
For a detailed explanation on how things work, check out the guide and docs for vue-loader.