diff options
author | Thomas Steur <tsteur@users.noreply.github.com> | 2016-08-28 09:33:55 +0300 |
---|---|---|
committer | Matthieu Aubry <mattab@users.noreply.github.com> | 2016-08-28 09:33:55 +0300 |
commit | 77a6412ff7a8bdb2f23fb00a2d8ce22e7a35fcee (patch) | |
tree | 32100fa64ee556f1fd125751bb7c619dc73200bf /js/README.md | |
parent | ba0a9d53f41a96c994d9bb1c8298d97c0400060c (diff) |
Split piwik.js into multiple files and provide a merged one (#10441)
refs #6106
Diffstat (limited to 'js/README.md')
-rw-r--r-- | js/README.md | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/js/README.md b/js/README.md index 9556dc402e..b3700827eb 100644 --- a/js/README.md +++ b/js/README.md @@ -46,11 +46,11 @@ The js/ folder contains: ```bash $ cd /path/to/piwik/js/ - $ sed '/<DEBUG>/,/<\/DEBUG>/d' < piwik.js | sed 's/eval/replacedEvilString/' | java -jar yuicompressor-2.4.7/build/yuicompressor-2.4.7.jar --type js --line-break 1000 | sed 's/replacedEvilString/eval/' | sed 's/^[/][*]/\/*!/' > piwik-min.js && cp piwik-min.js ../piwik.js + $ sed '/<DEBUG>/,/<\/DEBUG>/d' < piwik.js | sed 's/eval/replacedEvilString/' | java -jar yuicompressor-2.4.7/build/yuicompressor-2.4.7.jar --type js --line-break 1000 | sed 's/replacedEvilString/eval/' | sed 's/^[/][*]/\/*!/' > piwik.min.js && cp piwik.min.js ../piwik.js ``` - This will generate the minify /path/to/piwik/js/piwik-min.js and copy it to - /path/to/piwik/piwik.js + This will generate the minify /path/to/piwik/js/piwik.min.js and copy it to + /path/to/piwik/piwik.js. Both "js/piwik.min.js" and "piwik.js" need to be committed. * In a production environment, the tests/javascript folder is not used and can be removed (if present). |