Size: a a a

2020 June 24

T

TradersVE in Yii Framework 3
yes but you have to configure it.
источник

T

TradersVE in Yii Framework 3
class MessageAsset extends AssetBundle
{
   public ?string $basePath = '@assets';
   public ?string $baseUrl = '@assetsUrl';
   public ?string $sourcePath = '@bulmaAsset/sass/components/message';

   public array $css = [
       'message.sass',
   ];

   public array $publishOptions = [
       'only' => [
           'message.sass',
       ],
   ];

   public array $converterOptions = [
       'sass' => '--load-path=../../../node_modules/bulma',
   ];
}
источник

T

TradersVE in Yii Framework 3
for example there I am just creating the message component and you can customize it to your liking.
источник

T

TradersVE in Yii Framework 3
the other way is to load the generated css now.
источник

Д

Дмитрий in Yii Framework 3
Hm.. maybe.
источник

Д

Дмитрий in Yii Framework 3
TradersVE
the other way is to load the generated css now.
To compile sass is good. Better than load compiled css
источник

Д

Дмитрий in Yii Framework 3
Sorry if I don't get some parts. What if sass allready compiled?
источник

T

TradersVE in Yii Framework 3
Дмитрий
Sorry if I don't get some parts. What if sass allready compiled?
the assetManager will only compile the SASS file if the CSS file does not exist.
источник

RM

Rustam Mamadaminov in Yii Framework 3
How about using webpack?
Build css from sass ➡️ load generated css
источник

Д

Дмитрий in Yii Framework 3
That what I thought . What if using webpack for css and js?
источник

Д

Дмитрий in Yii Framework 3
You don't need it if you will have installed sass in the system
https://github.com/yiisoft/assets/blob/master/src/AssetConverter.php#L38
источник

T

TradersVE in Yii Framework 3
to use webpack we would have to change assetmanager.
источник

Д

Дмитрий in Yii Framework 3
Do sudo npm i -g sass
источник

T

TradersVE in Yii Framework 3
I use sass with the assetManager it works fine.
источник
2020 June 25

RM

Rustam Mamadaminov in Yii Framework 3
TradersVE
to use webpack we would have to change assetmanager.
Why?
источник

T

TradersVE in Yii Framework 3
to use webpack I would have to use it outside of yii and the asset manager would only load the generated css, is what i think.
источник

T

TradersVE in Yii Framework 3
but the script may fail, and the entire library would fail.
источник

AM

Alexander Makarov in Yii Framework 3
TradersVE
to use webpack I would have to use it outside of yii and the asset manager would only load the generated css, is what i think.
Yes, that's correct
источник

AM

Alexander Makarov in Yii Framework 3
TradersVE
but the script may fail, and the entire library would fail.
That's expected
источник

RM

Rustam Mamadaminov in Yii Framework 3
I did thought we would use webpack since version Yii 3...
источник