Git Product home page Git Product logo

Comments (6)

pgilad avatar pgilad commented on August 28, 2024

Can you specify your grunt config for the jadeUsemin task?

from grunt-jade-usemin.

maruf89 avatar maruf89 commented on August 28, 2024
//- index.jade
if env === 'development'
    //- <!-- build:js dist/scripts/scripts.min.js -->

    //- bower:js
    script(src='bower_components/angular/angular.min.js')
    script(src='a_lot_more_scripts...')
    //- endbower

    //- <!-- endbuild -->
else
    script(src='scripts/main.min.js')
jadeUsemin: {
    dist: {
        options: {
            uglify: false,
            prefix: 'dist/'
        },
        files: {
            src: ['<%= config.app %>/views/index.jade'],
            dest: '<%= config.dist %>/views/index.jade'
        }
    }
},

I reverted to 0.3.0 and everything works. Frankly I don't think the setup has anything to do with it since in https://github.com/pgilad/grunt-jade-usemin/blob/master/tasks/lib/jade_usemin.js there's a variable named location which is not defined anywhere.

from grunt-jade-usemin.

andrewboni avatar andrewboni commented on August 28, 2024

Also getting this error:

❯ grunt jadeUsemin --debug                                                                                                         3 ↵
Running "jadeUsemin:main" (jadeUsemin) task
[D] Task source: /code/harp/node_modules/grunt-jade-usemin/tasks/jade_usemin.js
Processing jade file public/_layout.jade
Warning: location is not defined Use --force to continue.

Set up:

    jadeUsemin:
      main:
        options:
          uglify: true
        files:
          src: ["public/_layout.jade"]
          dest: ["public/_layout2.jade"]

from grunt-jade-usemin.

pgilad avatar pgilad commented on August 28, 2024

Yeah I see the problem... will take care of it. Thanks for letting me know.

from grunt-jade-usemin.

andrewboni avatar andrewboni commented on August 28, 2024

@pgilad Thanks- seems to work as intended now.

from grunt-jade-usemin.

pgilad avatar pgilad commented on August 28, 2024

👍 no problem

from grunt-jade-usemin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.