Comments (2)
Here's my simplified bower.json file:
{
"dependencies": { },
"devDependencies": {
"jquery": "~1.10.2"
}
}
And the bower-install config from the Gruntfile.js:
'bower-install': {
app: {
html: '<%= yeoman.app %>/views/index.html',
ignorePath: '<%= yeoman.app %>/',
exclude: ['sass-bootstrap'],
devDependencies: true,
dependencies: false
},
dist: {
html: '<%= yeoman.dist %>/views/index.html',
ignorePath: '<%= yeoman.dist %>/',
exclude: ['sass-bootstrap'],
devDependencies: false,
dependencies: truew
}
After running either of the two substasks (app or dist), the output in the index.html is like this:
<!-- bower:js -->
<!-- endbower -->
If I put all the devDependencies in the dependencies object, it all works fine, but that's not what I want to do.
from grunt-wiredep.
You have to upgrade grunt-bower-install
to at least 1.0
to use that feature.
from grunt-wiredep.
Related Issues (20)
- Running "wiredep:task" (wiredep) task Warning: Unexpected token < Use --force to continue. Aborted due to warnings. HOT 2
- One strange thing HOT 3
- Component is not injecting in .html file HOT 14
- Update Wiredep to 3.0.0
- Update to grunt 1.0 HOT 1
- ignored dependencies in .bowerrc HOT 1
- Less dependencies HOT 1
- Grunt operation aborted
- Publish 4.0.0 to npm? HOT 3
- CSS reference not loading HOT 3
- Warning: Task "wiredep" not found
- dependency removed from jade file when running wiredep grunt task HOT 1
- Can it be used for styles? HOT 2
- cwd help HOT 3
- How does "overrides" work? HOT 1
- replace src after injection HOT 2
- Sorting Method
- NPM install warns of peer requirement
- Specifying src of bower.json HOT 1
- target specific overrides
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-wiredep.