Comments (9)
@lhtdesignde this should fix the issue #42
from grunt-csscomb.
Fixed in v4.0.0.
from grunt-csscomb.
Yes, you can already do :)
Please write code as follows.
grunt.initConfig({
csscomb: {
dynamic_mappings: {
expand: true,
cwd: '/assets/css/',
src: ['*.css'],
dest: '/assets/css/'
}
}
});
Add description on Readme.md.
from grunt-csscomb.
@t32k, I think the question was not so much about the support as about syntax: now you need to write 4 lines and @oswaldoacauan proposes doing the same thing with 1 line of code.
from grunt-csscomb.
@tonyganch Oh, I see. That's what it means...
OK, I'll think it.
from grunt-csscomb.
First of all, @oswaldoacauan is right, there is a comb.processPath()
method that can be used for both files and directories.
Also, I'm not sure if anyone uses this plugin and sets destination path different from source one.
I have looked at some examples how people use this grunt task — dest
and src
are always the same.
So maybe the idea of having one-line settings is good.
But at the same time I don't think that we should invent any new rules of setting paths.
I have taken a look at grunt-contrib-jshint.
There is an example:
grunt.initConfig({
jshint: {
all: ['Gruntfile.js', 'lib/**/*.js', 'test/**/*.js']
}
});
Maybe we should support the same workflow, so user can add .csscomb.json
file to project's root and then add a few lines to Gruntfile
:
...
csscomb: {
all: ['src/styles']
}
...
This will process all supported files in src/styles
directory and rewrite them if any changes are needed.
And those who want destination path to differ from source can still use current files: {}
way.
from grunt-csscomb.
Yep, i think the @tonyganch described workflow is nice.
👍 for less lines in Gruntfile.js
from grunt-csscomb.
👍
from grunt-csscomb.
+1 is this possible already?
from grunt-csscomb.
Related Issues (20)
- Suport for sass/scss HOT 2
- Maximum call stack size exceeded in 1.2.0 HOT 5
- Not sure how to make CSSComb plugin sort without unminifying the CSS HOT 4
- Dynamic mapping - overwriting same file HOT 3
- task not sorting, what I'm doing wrong? HOT 3
- Ignoring indentations HOT 1
- Publish new version to npm HOT 5
- 3.0.0-1 issue HOT 2
- @include parse error in SASS (SCSS) HOT 2
- loop tasks
- Lint option is not available HOT 2
- Multiple sources do not work as expected
- console.warn stops CSScomb HOT 1
- In SASS, I can't @extend from a class with a number in it
- Cannot read property of undefined error for SASS files HOT 1
- Large files not running task
- Lift up property "border-color" above "border-bottom" (for example). HOT 3
- Cannot support the latest grunt version v1.0.0 HOT 1
- Security warning in [email protected] - Update csscomb package HOT 1
- Version 4.0.0 is not available using npm HOT 7
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-csscomb.