Support @stack and @push in block editor preview
For example: resources/views/site/layout/block.blade.php
<!doctype html> <html lang="en"> <head> <title>#madewithtwill website <link rel="stylesheet" href="{{mix('css/app.css')}}"> @stack('styles') </head> <body> <div> @yield('content') </div> <script src="{{mix('js/app.js')}}"> @stack('scripts') </body> </html>
resources/views/site/blocks/some_block.blade.php @push('styles') <style>Some styles</styles> @endpush @push('scripts') <script>Some scripts</script> @endpush
Seems some_block is not extending block, stack and push is not working, is that some other ways to do this?
Hey @thingasd,
This is currently not possible. But I will for sure look into it for 3.x if I find some spare time.
I will leave the issue open so it can be tracked.