Skip to content
This repository has been archived by the owner on Dec 3, 2021. It is now read-only.

CoreUI with symfony 4 #8

Open
ghost opened this issue Oct 23, 2018 · 1 comment
Open

CoreUI with symfony 4 #8

ghost opened this issue Oct 23, 2018 · 1 comment

Comments

@ghost
Copy link

ghost commented Oct 23, 2018

How to use coreui with symfony4?

@inrumi
Copy link

inrumi commented Jun 19, 2019

How to use coreui with symfony4?

I'm not the author, but you can install Symfony Encore that is a wrapper for Webpack, and install as suggested in the documentation:

For the style files you should import your SCSS/CSS files in javascript and let encore/webpack compile them something like this:

// assets/scss/system.scss
@import "system/variables";

// CoreUI
@import "system/coreui";

// Fontawesome
@import "system/fontawesome";
// assets/js/app.js
import '../../scss/system.scss';

import $ from 'jquery';
import 'bootstrap';
import '@coreui/coreui/js/src/ajax-load';
import '@coreui/coreui/js/src/aside-menu';
import '@coreui/coreui/js/src/sidebar';

import './components/bootstrap-input';

$('#ui-view').ajaxLoad();

https://coreui.io/docs/getting-started/webpack/
https://symfony.com/doc/current/frontend.html

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant