RC-Paves3-build / plovr

Automatically exported from code.google.com/p/plovr
0 stars 0 forks source link

Option "output-wrapper" is not taken into account when using with modules #57

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
Build with a config like that:
=====================
{
  "id": "root",
  "paths": "."

  "modules": {
    "main": {
      "inputs": "main.js",
      "deps": []
    },
  },

  "mode": "SIMPLE",

  "output-wrapper": [
    "// Copyright 2011 \n",
    "// All Right Reserved \n\n",
    "%output%"
  ],

  "module-output-path": "../min/%s.build.js",

  "module-info-path": "/dev/null"
}
=====================

What is the expected output? What do you see instead?
The expected output is compiled main.build.js with copyright info in the 
beginning.
I can't see copyright in compiled code instead.

What version of the product are you using? On what operating system?
4b3caf2b7d84, OS X 10.7.3

Please provide any additional information below.
I would like plovr to wrap *each* generated module file in output-wrapper.

Original issue reported on code.google.com by aleksam...@gmail.com on 18 Feb 2012 at 9:30

GoogleCodeExporter commented 8 years ago
Working "output-wrapper" for modules would be really useful when you need to 
get rid of obfuscated "aa" and "Bb" in global scope.
More information - 
https://groups.google.com/forum/?fromgroups#!topic/closure-compiler-discuss/aajy
OY8o6CU

Original comment by aleksam...@gmail.com on 2 May 2012 at 8:33