From 130a7f911fa9b1b2f7d125e780e7d3df7c69f332 Mon Sep 17 00:00:00 2001 From: Laura Tonning Date: Mon, 17 Jun 2024 21:23:05 +0200 Subject: [PATCH] Tweaks --- public/.gitkeep | 0 src/Settings/SkeletonSettings.php | 9 +++++---- webpack.mix.js | 15 ++++++++++++--- 3 files changed, 17 insertions(+), 7 deletions(-) create mode 100644 public/.gitkeep diff --git a/public/.gitkeep b/public/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/src/Settings/SkeletonSettings.php b/src/Settings/SkeletonSettings.php index 21bc026..bdab149 100644 --- a/src/Settings/SkeletonSettings.php +++ b/src/Settings/SkeletonSettings.php @@ -7,11 +7,12 @@ class SkeletonSettings extends AppSettings { - // public string $url; + // public string $url; // Example, modify to fit your need. - protected array $rules = [ - // 'url' => Rule::requiredIf($this->enabled === true), - ]; + public function rules(): array + { +// 'url' => Rule::requiredIf($this->enabled === true), // Example, modify to fit your need. + } public function description(): string { diff --git a/webpack.mix.js b/webpack.mix.js index abd559a..161e8fd 100644 --- a/webpack.mix.js +++ b/webpack.mix.js @@ -9,8 +9,17 @@ const mix = require('laravel-mix'); | for your Laravel applications. By default, we are compiling the CSS | file for the application as well as bundling up all the JS files. | + | ----------------------------------------------- + | HOW TO USE IN YOUR STRATA CONSUMING APPLICATION + | ----------------------------------------------- + | Using your view with mix('css/skeleton.css', 'vendor/skeleton') + | Be sure to publish your assets first, see docs for more information + | https://docs.3zbrands.dev/strata/index/assets-and-resources#publishing-your-assets + | */ -mix.postCss('resources/css/skeleton.css', 'public/css', [require("tailwindcss")]) - // Uncomment if you need compiled Javascript - // .js('resources/js/skeleton.js', 'public/js') +// mix + // .postCss('resources/css/skeleton.css', 'css', [require('tailwindcss')('tailwind.config.js')]) + // .js('resources/js/skeleton.js', 'js') + // .version() + // .setPublicPath('public/')