Skip to content

how to get the instance from node and trigger a reload? #93

Description

@stratboy

Hi! I'm trying to reach the instance created in webpack config from a tasks.js small node script, and then trigger a manual reload.

This is my current code in tasks.js, which I run directly with node after executing webpack:

const webpackConfig = require('./webpack.config');
const browsersync = require('browser-sync');
const bs = browsersync.get('bs-webpack-plugin');
bs.reload(); 

bs does exists, but reload() does nothing.

How to? Is it anyway possible?

Thank you

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions