Hello everyone,
i currently start to use RockFrontend and I start with the starter profile.
the problem I discover is, when I remove in _init.php the less file loaded from the uikit folder, it gives me a 500 error. As I don't want to use the less file coz I have a custom uikit file in css, how can I achieve this?
<?php
namespace ProcessWire;
// Optional initialization file, called before rendering any template file.
// This is defined by $config->prependTemplateFile in /site/config.php.
// Use this to define shared variables, functions, classes, includes, etc.
$rf = rockfrontend();
$rf->styles()
// add the base uikit theme
->add('/site/templates/uikit/src/less/uikit.theme.less')
// add default folders like /sections and /partials
->addDefaultFolders()
// add the bundled tailwind utility classes
->add('/site/templates/bundle/tailwind.css')
// minify on production
->minify($config->debug ? false : true);
$rf->scripts()
// load uikit (without defer to avoid FOUC)
->add('/site/templates/uikit/dist/js/uikit.min.js')
// load uikit (with defer to avoid FOUC)
->add('/site/templates/uikit/dist/js/uikit-icons.min.js', 'defer')
// load custom javascript of this project
->add('/site/templates/scripts/main.js', 'defer')
// minify on production
->minify($config->debug ? false : true);
For clarification I want to remove uikit.theme.less and replace it with this file:
<?php
namespace ProcessWire;
// Optional initialization file, called before rendering any template file.
// This is defined by $config->prependTemplateFile in /site/config.php.
// Use this to define shared variables, functions, classes, includes, etc.
$rf = rockfrontend();
$rf->styles()
// add the base uikit theme
->add('/site/templates/bundle/styles.css')
// add default folders like /sections and /partials
->addDefaultFolders()
// add the bundled tailwind utility classes
->add('/site/templates/bundle/tailwind.css')
// minify on production
->minify($config->debug ? false : true);
$rf->scripts()
// load uikit (without defer to avoid FOUC)
->add('/site/templates/uikit/dist/js/uikit.min.js')
// load uikit (with defer to avoid FOUC)
->add('/site/templates/uikit/dist/js/uikit-icons.min.js', 'defer')
// load custom javascript of this project
->add('/site/templates/scripts/main.js', 'defer')
// minify on production
->minify($config->debug ? false : true);
Thank you