vigetlabs / blendid

A delicious blend of gulp tasks combined into a configurable asset pipeline and static site builder
MIT License
4.97k stars 685 forks source link

Craft 3 #546

Open ineghi opened 6 years ago

ineghi commented 6 years ago

Hi guys !

There is a plan to support Craft 3 in the near futur ?

Thanks for the amazing work !

lxcodes commented 5 years ago

I'd say Blendid supports Craft 3, but just doesn't setup everything up through the blueprint.

I'd highly suggest AssetRev (https://github.com/clubstudioltd/craft-asset-rev) to take care of manifest lookups as it's been great for us.

In the path-config.json, change it to web/ instead of public/.

olets commented 5 years ago

@ineghi so sorry you had to wait so long for a response from the Blendid team. @lxcodes is exactly right: Blendid works great with Craft 3. As we started to add yarn run blendid init <type> tasks, we realized it could get unweildy with more and more custom tasks.

As long as Blendid has a Craft task already, it would make sense to update it for Craft 3.

In the meantime, you can easily set it up yourself.

  1. Move the contents of https://github.com/vigetlabs/blendid/tree/master/extras/craft/config to <your project>/config
  2. As in the above comment, update path-config's dest to ./web/assets
  3. And yes! Asset Rev is the way to go for Craft 3 asset revving. In your config/assetrev.php you'll likely do
    'manifestPath' => './web/assets/rev-manifest.json',
    'assetsBasePath' => './web/assets/',
    'assetUrlPrefix' => '/assets/',