webpack.extra.watch.js 314 Bytes
Newer Older
CED SA's avatar
CED SA committed
1 2 3 4 5 6 7 8 9 10 11 12 13
const { exec } = require('shelljs');

const config = require('./webpack.extra.common');

config.plugins = [{
    apply: (compiler) => {
        compiler.hooks.afterEmit.tap('AfterEmitPlugin', () => {
            exec(`yarn bld-ng watch mod serve`, { async: false });
        });
    }
}]

module.exports = config;