UNPKG

@skylineos/videojs-clsp

Version:

Video JS plugin for Skyline Technology Solutions' CLSP Player - https://github.com/skylineos/clsp-player

34 lines (26 loc) 872 B
#!/usr/bin/env node 'use strict'; /** * @see - https://github.com/webpack/webpack-dev-server * @see - https://github.com/webpack/webpack-dev-server/blob/master/examples/api/simple/server.js */ const WebpackDevServer = require('./WebpackDevServer'); const DEV_SERVER_PORT = Object.prototype.hasOwnProperty.call(process.env, 'DEV_SERVER_PORT') ? parseInt(process.env.DEV_SERVER_PORT, 10) : 8081; async function main () { const webpackDevServer = WebpackDevServer.factory(); await webpackDevServer.server.start(); } main() .then(() => { console.log(''); console.log(`Webpack dev server is running on port ${DEV_SERVER_PORT}!`); console.log(''); // Do not exit here because the watcher needs to keep running }) .catch((err) => { console.error('Unable to run webpack dev server!'); console.error(err); process.exit(1); });