Bagaimana Cara Menampilkan Asset File CSS dan JS dalam Bentuk Inline CSS/JS? #182
Answered
by
taufik-nurrohman
yuliakbard
asked this question in
Q&A
Replies: 1 comment 6 replies
-
<?php
$script = <<<JS
/* Kode JavaScript di sini… */
JS;
$style = <<<CSS
/* Kode CSS di sini… */
CSS;
Asset::script($script, 10);
Asset::style($style, 10); |
Beta Was this translation helpful? Give feedback.
6 replies
Answer selected by
taufik-nurrohman
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Kang ijin tanya,
Asset::set('css/index.min.css',20);
ini akan menampilkan css dalam bentuk eksternal css, bagaimana cara menampilkannya dalam bentuk inline cssuntuk penggunaan halaman AMP, yang tidak memperbolehkan eksternal css
Beta Was this translation helpful? Give feedback.
All reactions