Commit 2d5bccb0 authored by Tobias Munk's avatar Tobias Munk

updated asset manager configuration

parent b67af5f6
......@@ -6,7 +6,7 @@
*/
return [
// Adjust command/callback for JavaScript files compressing:
'jsCompressor' => 'java -jar /root/compiler.jar --js {from} --js_output_file {to}',
'jsCompressor' => 'java -jar /usr/lib/node_modules/google-closure-compiler/compiler.jar --js {from} --js_output_file {to}',
// Adjust command/callback for CSS files compressing:
'cssCompressor' => 'yui-compressor --type css {from} -o {to}',
// The list of asset bundles to compress:
......
......@@ -23,7 +23,7 @@ $common = [
// Note: For using mounted volumes or shared folders
'dirMode' => YII_ENV_PROD ? 0777 : null,
'bundles' => getenv('APP_ASSET_USE_BUNDLED') ?
require(__DIR__.'/assets-gen/prod.php') :
require(__DIR__.'/gen/bundle-prod.php') :
[
// Note: if your asset bundle includes bootstrap, you can disable the default asset
#'yii\bootstrap\BootstrapAsset' => false,
......
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