Twill: using Browsersync

Created on 13 Dec 2018  路  3Comments  路  Source: area17/twill

based on the issue https://github.com/area17/twill/issues/6

Would it not be better if your twill-dev initialized and used the browsersync options as well?

question

All 3 comments

Hi @karneaud,

twill-dev actually use Webpack Hot Module Reloading through Mix, which should dynamically inject CSS/JS changes or reload the page when not possible.

I hear you about the issues in #6, we're still looking into moving away from npm scripts for a smoother developer experience.

I'm having a problem with the URL assignment in my project at the moment( docker container misbehaving) so I'm resorting to some hard coded urls to get by. Would it be possible to default to the usual npm run dev and reference twill related assets?

Hi @karneaud, happy 2019!

Sorry for the delay in responding here, I took a short break between the holidays.

You could use npm run dev if you were building Twill assets from your own npm project. Right now you would have to require Twill's npm deps from your own package.json and adapt Twill's Mix configuration in your own webpack.mix.js file. We working towards a new build configuration if you read through #113 though, so I wouldn't invest too much time on this on your end for now if you have no problem actually building.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

noxify picture noxify  路  4Comments

lostdesign picture lostdesign  路  5Comments

brammittendorff picture brammittendorff  路  6Comments

vacoup95 picture vacoup95  路  3Comments

layout-lab picture layout-lab  路  5Comments