Comments (6)
Can you specify your grunt config for the jadeUsemin task?
from grunt-jade-usemin.
//- 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.
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.
Yeah I see the problem... will take care of it. Thanks for letting me know.
from grunt-jade-usemin.
@pgilad Thanks- seems to work as intended now.
from grunt-jade-usemin.
👍 no problem
from grunt-jade-usemin.
Related Issues (20)
- Feature request: Incorporate file revision hash HOT 5
- filerev usage HOT 7
- Create examples.md which shows various usages examples
- Plugin fails when minblock has no tags
- Add option to specify destination directory for taks HOT 12
- It's not clear how to add config for tasks HOT 3
- filerev task doesn't work when using the same output file per two pages HOT 3
- filerev task doesn't work when using the same output file per two pages with targetPrefix HOT 1
- Unable to use absolute path to compiled source HOT 12
- Included assets don't bundled? HOT 7
- How to override source js/css files with revved ones? HOT 6
- Source Maps HOT 2
- Warning: Task "concat:jadeUsemin-css" not found. HOT 15
- Should we fail when script src does not exist? HOT 2
- Pug files are not processed HOT 2
- possibly wrong warning on css&js build types HOT 3
- Task "concat:jadeUsemin" not found HOT 2
- Feature request - write target jade files after replacing build blocks
- Image path in css is not being replaced with relative or absolute path HOT 9
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from grunt-jade-usemin.