Skip to content

no output with uglifyjs on windows #286

@ebrost

Description

@ebrost

i'm using the plugin for cake2 and everything seem ok but i can't get any js file while uglify is declared

my ini file:

;
[General]
cacheConfig = false
alwaysEnableController = false

[filter_UglifyJs]
node=C:\nodejs\node.exe
;node_path=C:\Users\manu\AppData\Roaming\npm\node_modules
node_path=node_modules\uglify-js\bin
uglify =C:\Users\manu\AppData\Roaming\npm\node_modules\uglifyjs\bin\uglifyjs

[js]
;baseUrl = http://cdn.example.com
timestamp = true
paths[] = WEBROOT/*
paths[] = WEBROOT/js/*
paths[] = app/Plugin/Agenda/webroot/js/*
paths[] = app/Plugin/Administration/webroot/js/*
cachePath = WEBROOT/cache_js
;filters[] = UglifyJs

; Each target should have a section defining the files
; everything after js_* is considered the build file.
; all files included in the build are relative to the parent
; paths key.
;
; targets can include their own filters.
[common.js]
files[] = bower_components/bootstrap/dist/js/bootstrap.js
files[] = bower_components/jasny-bootstrap/dist/js/jasny-bootstrap.min.js
filters[] = UglifyJs

and the output :

`Welcome to CakePHP v2.8.4 Console
---------------------------------------------------------------
App : app
Path: C:\wamp\www\culturo\app\
---------------------------------------------------------------

Building files defined in the ini file
---------------------------------------------------------------
Saving file for common.v1465402139.js
Error: (node) util.print is deprecated. Use console.log instead.

Building files in views
---------------------------------------------------------------
Done.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions