Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
app
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Jobs
Commits
Open sidebar
phundament
app
Commits
ad058565
Commit
ad058565
authored
Mar 03, 2015
by
Tobias Munk
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
updated docs
parent
97fcd8c2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
6 deletions
+11
-6
assets.sh
build/assets.sh
+3
-1
43-asset-compression.md
docs/43-asset-compression.md
+8
-5
No files found.
build/assets.sh
View file @
ad058565
#!/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
docs/43-asset-compression.md
View file @
ad058565
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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment