-
Notifications
You must be signed in to change notification settings - Fork 348
Home
phiamo edited this page May 29, 2012
·
5 revisions
Welcome to the MopaBootstrapBundle wiki!
For branching Strategy please consult: Branches & Versions
A known problem is howto integrate your own less files:
We propose that you do it like we did in the MopaBootstrapSandboxBundle's less file: mopabootstrapsandboxbundle.less:
// Getting the whole mopabootstrapbundle.less
// apdapt the path depending where your less file resides!!!
@import "../../../../../../../../mopa/bootstrap-bundle/Mopa/Bundle/BootstrapBundle/Resources/public/less/mopabootstrapbundle.less";
// some less file from your bundle
@import 'example.less';
// include the responsive after all of your stuff!
@import "../../../../../../../../twitter/bootstrap/less/responsive.less";
// if you have any variables.less file INCLUDE IT AFTER EVERYTHING cause responsive.less also overrides it with the one from bootstrap!!!!!
@import 'variables.less';
Now we have the problem that assetic only checks the file included in you template ... Until there is a solution in assetic, there is a patched version taking care of less files and which also checks all imported files,
https://github.com/phiamo/assetic/tree/asset-dependency-check
Include this in your composer.json to use it instead of assetic-master:
{
"require": {
"kriswallsmith/assetic": "dev-asset-dependency-check as 1.1.0.0-dev"
},
"repositories": [
{
"type": "vcs",
"url": "http://github.com/phiamo/assetic"
}
]
}