mirror of
https://github.com/FoggedLens/iD.git
synced 2026-02-12 16:52:50 +00:00
https://www.bleepingcomputer.com/news/security/dev-corrupts-npm-libs-colors-and-faker-breaking-thousands-of-apps/
17 lines
455 B
JavaScript
17 lines
455 B
JavaScript
/* eslint-disable no-console */
|
|
const chalk = require('chalk');
|
|
const gaze = require('gaze');
|
|
const StaticServer = require('static-server');
|
|
|
|
const buildCSS = require('./build_css.js');
|
|
|
|
|
|
gaze(['css/**/*.css'], (err, watcher) => {
|
|
watcher.on('all', () => buildCSS());
|
|
});
|
|
|
|
const server = new StaticServer({ rootPath: process.cwd(), port: 8080, followSymlink: true });
|
|
server.start(() => {
|
|
console.log(chalk.yellow(`Listening on ${server.port}`));
|
|
});
|