Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
stratboy opened this issue Feb 16, 2022 · 0 comments
Open

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

stratboy opened this issue Feb 16, 2022 · 0 comments

Comments

@stratboy
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant