Comments (6)
http://gruntjs.com/configuring-tasks#files
nonull
?
from grunt-contrib-concat.
No. nonull
can log a warning message, but it does not have Grunt abort.
from grunt-contrib-concat.
This is something that should be configurable in Grunt's core. We get issues opened up both ways, some users want tasks to abort on warning and some don't. The tasks that do abort were getting issues opened to implement a force
option per task. So the consensus was all tasks shouldn't abort, just warn. Then later implement an option in Grunt's core that would make this configurable.
A workaround for now is:
grunt.log.warn = grunt.warn;
from grunt-contrib-concat.
I would love to see this in Grunt's core or in the very least, for it be possible and consistent in all of the contrib plugins.
In grunt-contrib-uglify, there's been similar discussion.
Any chance we can evolve the nonull
option to be one (or more) of the following options: "log", "warn", "notify" or "fail"?
I can understand why people may not want grunt to abort a build if files aren't matched on wildcards. If you're pointing to a specific file, I really think the default behaviour should be to abort the build if that file isn't found.
Coming from other build tools, this is really a fundamental feature that's missing in Grunt.
from grunt-contrib-concat.
Did this ever get implemented in the Grunt core? A year later and our project is still suffering the same, would love to be able to turn on the ability to fail when a specified file is missing.
from grunt-contrib-concat.
This topic is still relevant. grunt-contrib-concat should have an option to abort when file missing when we use it in production.
from grunt-contrib-concat.
Related Issues (20)
- how to read more than one files by using wildcard? HOT 1
- Remove peerDeps HOT 1
- relative url in css/js file
- stripBanners is backwards
- Snap-Ci concat.generated config error HOT 1
- File ordering changed since update?
- d in grunt
- node 7.0.0 breaks task
- JS Stacktrace Crash on SourceMaps HOT 1
- Please either add css concatenation support, or mention in the documentation that it is impossible with this tool
- Cannot convert undefined or null to object when npm install.
- Unable to concatenate file with multiple sourcemaps HOT 3
- concat in specific order; not alphabetically HOT 1
- Concatenating files that end in comments adds the first line of new files as comments too
- Concat only works with 'files' object HOT 1
- Concat minified files with source map results in line offset HOT 1
- update for source-map 0.7.x HOT 2
- Upgrade Chalk HOT 1
- Is it possible to map error traces back to source files?
- options.process undefined, even though it's not HOT 1
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-contrib-concat.