Commit ad058565 authored by Tobias Munk's avatar Tobias Munk

updated docs

parent 97fcd8c2
#!/bin/sh
# Clean and prepare build
# see https://github.com/yiisoft/yii2/issues/7414, https://github.com/yiisoft/yii2/issues/7473
rm -rf web/assets-prod
mkdir -p web/assets-prod/js
mkdir -p web/assets-prod/css
touch web/assets-prod/js/backend-temp.js
touch web/assets-prod/css/all-temp.css
# Compress asset bundles in Docker container
docker-compose run web ./yii asset config/assets.php config/assets-prod.php
\ No newline at end of file
wip
Asset compression
-----------------
mkdir -p web/assets-prod/js
mkdir -p web/assets-prod/css
touch web/assets-prod/js/backend-temp.js
Phundament bundles the assets in the `:development` Docker container, which comes pre-installed with all required
tools, to make use of Yii 2.0 Framework asset compresssion.
sh build/assets.sh
docker-compose run web ./yii asset config/assets.php config/assets-prod.php
\ No newline at end of file
> Note! Make sure not to use a backlash `\` at the beginning of your asset-bundle name, since it may conflict with
> the `className()` which returns values without a starting backslash
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment