skeeks-semenov / yii2-assets-auto-compress

Automatic compilation of js + css + html
https://skeeks.com/
BSD 3-Clause "New" or "Revised" License
157 stars 43 forks source link

Skeeks-CKEditor and Yii2-assets-auto-compress not working together #41

Closed atishhamte closed 5 years ago

atishhamte commented 7 years ago

Hello,

I am using Skeeks-CKEditor in code and Yii2-assets-auto-compress for compressing assets.

When I am using it, the dynamically generated assets path is not coming correctly.

CKEditor code:

<?= skeeks\yii2\ckeditor\CKEditorWidget::widget([
    'name' => 'content',
    'id' => 'content',
    'options' => ['rows' => 6],
    'preset' => CKEditorPresets::FULL,
    'clientOptions' =>
        [
            'height' => 120,
        ],
]); ?>

and Asset-auto-compress code is:

'assetsAutoCompress' => [
    'class'                         => '\skeeks\yii2\assetsAuto\AssetsAutoCompressComponent',
    'enabled'                       => true,
    'readFileTimeout'               => 10,
    'jsCompress'                    => true,
    'jsCompressFlaggedComments'     => true,
    'cssCompress'                   => true,
    'cssFileCompile'                => true,
    'cssFileRemouteCompile'         => true,
    'cssFileCompress'               => true,
    'cssFileBottom'                 => false,
    'cssFileBottomLoadOnJs'         => false,
    'jsFileCompile'                 => true,
    'jsFileRemouteCompile'          => true,
    'jsFileCompress'                => true,
    'jsFileCompressFlaggedComments' => true,
    'htmlCompress'                  => false,
    'noIncludeJsFilesOnPjax'        => true,
    'htmlCompressOptions'           => 
        [
            'extra' => false,
            'no-comments' => true
        ],
],

Both the plugins are developed by you. So just help me out to resolve this.