1
0
Fork 0
docsearch/docs/algolia-frontend-components/build/development.js
2018-02-07 10:56:52 +01:00

15 lines
384 B
JavaScript
Executable file

const fs = require('fs');
const path = require('path');
const glob = require('glob');
const buildAssets = require('./build.js');
const COMPONENT_DIR = path.resolve(__dirname, './../components');
const FILE_GLOB = COMPONENT_DIR + "/**/*";
glob(FILE_GLOB, (err, files) => {
files.forEach(file => {
fs.watch(file, (eventType, filename) => {
buildAssets();
});
})
});