JulienCabanes / requirejs-tpl

RequireJS Template Plugin
207 stars 43 forks source link

make work with jakewins/brew maven plugin #4

Open eeroan opened 12 years ago

eeroan commented 12 years ago

Currently having this error, when running mvn brew:optimize:

js: Error: Error evaluating module "undefined" at location "undefined": Error in file: /.../requirejs.plugins/tpl-0.24.0.js. Conditional comment: //>>excludeStart('excludeTpl', pragmas.excludeTpl) failed with this error: TypeError: Cannot read property "excludeTpl" from null fileName:undefined lineNumber: undefined http://requirejs.org/docs/errors.html#defineerror (/var/folders/kd/nhdzps716w78sf3nhsgn3mw80000gn/T/build6149642382638994696js#7606)

pom.xml settings looks like this:

        <plugin>
            <groupId>com.voltvoodoo</groupId>
            <artifactId>brew</artifactId>
            <version>0.2.10</version>
            <executions>
                <execution>
                    <goals>
                        <goal>compile</goal>
                        <goal>optimize</goal>
                    </goals>
                </execution>
            </executions>
            <configuration>
                <optimizeSourceDir>${basedir}/src/main/webapp</optimizeSourceDir>
                <optimizeBuildDir>${basedir}/src/main/webapp</optimizeBuildDir>
                <optimizeOutputDir>${basedir}/src/main/webapp</optimizeOutputDir>
                    <!-- Set this to do auto-compilation when a file is changed <watch>true</watch> -->
        </configuration>
        </plugin>