Shopify / slate

Slate is a toolkit for developing Shopify themes. It's designed to assist your workflow and speed up the process of developing, testing, and deploying themes.
https://shopify.github.io/slate
MIT License
1.28k stars 364 forks source link

How to add Browsersync default browser option to slate.config.js? #983

Open dungle-scrubs opened 5 years ago

dungle-scrubs commented 5 years ago

I've learned how to change the default browsersync browser that loads by navigating to

node_module/@shopify/slate-tools/tools/dev-server/index.js

and adding to bsConfig, browser: ["Firefox Developer Edition", "Firefox", "Google Chrome"] (This will launch all 3 of these browsers)

However, is there a way to add this from slate.config.js? I'm not great with Webpack yet and would like to avoid modifying the node_module folder.

Thanks

josefarrugia commented 5 years ago

Perhaps there's a way to do it via the webpack.extend?