-
Notifications
You must be signed in to change notification settings - Fork 428
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
after yii2 combining-compressing-assets _all-skins.min.css link to my project web folder #191
Comments
Which Yii version are you using? |
$ ./yii composer.json |
Hello.
after combining assets
./yii asset assets.php config/assets-prod.php
file /vendor/almasaeed2010/adminlte/dist/css/skins/_all-skins.min.css link to my project web folder /css/skins/_all-skins.min.css but there is no file.
assets.php
`<?php
/**
*/
// In the console environment, some path aliases may not exist. Please define these:
Yii::setAlias('@webroot', DIR . '/web');
Yii::setAlias('@web', '/');
return [
// Adjust command/callback for JavaScript files compressing:
'jsCompressor' => 'java -jar compiler.jar --js {from} --js_output_file {to}',
// Adjust command/callback for CSS files compressing:
'cssCompressor' => 'java -jar yuicompressor-2.4.8.jar --type css {from} -o {to}',
// Whether to delete asset source after compression:
'deleteSource' => false,
// The list of asset bundles to compress:
'bundles' => [
'admin\assets\AppAsset',
'dmstr\web\AdminLteAsset',
// 'yii\web\YiiAsset',
// 'yii\web\JqueryAsset',
],
// Asset bundle for compression output:
'targets' => [
'all' => [
'class' => 'yii\web\AssetBundle',
'basePath' => '@webroot/assets',
'baseUrl' => '@web/assets',
'js' => 'js/all-{hash}.js',
'css' => 'css/all-{hash}.css',
],
],
// Asset manager configuration:
'assetManager' => [
'basePath' => '@webroot/assets',
'baseUrl' => '@web/assets',
],
];`
maybe I'm doing something wrong?
Thanks!
The text was updated successfully, but these errors were encountered: