You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In your project's Gruntfile, add a section named `purifycss` to the data object passed into `grunt.initConfig()`.
24
-
25
-
```js
26
-
grunt.initConfig({
27
-
purifycss: {
28
-
options: {
29
-
// Task-specific options go here.
30
-
},
31
-
your_target: {
32
-
// Target-specific file lists and/or options go here.
33
-
},
34
-
},
35
-
});
36
-
```
37
-
38
-
### Options
39
-
40
-
#### options.separator
41
-
Type: `String`
42
-
Default value: `', '`
43
-
44
-
A string value that is used to do something with whatever.
45
-
46
-
#### options.punctuation
47
-
Type: `String`
48
-
Default value: `'.'`
49
-
50
-
A string value that is used to do something else with whatever else.
51
-
52
22
### Usage Examples
53
23
54
-
#### Default Options
55
-
In this example, the default options are used to do something with whatever. So if the `testing` file has the content `Testing` and the `123` file had the content `1 2 3`, the generated result would be `Testing, 1 2 3.`
24
+
In this example, the default options are to specify a target with src files, style files, and an output destination. The plugin will search for style selectors used in the source files, and then output a trimmed down style sheet.
In this example, custom options are used to do something else with whatever else. So if the `testing` file has the content `Testing` and the `123` file had the content `1 2 3`, the generated result in this case would be `Testing: 1 2 3 !!!`
In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using [Grunt](http://gruntjs.com/).
87
-
88
-
## Release History
89
-
_(Nothing yet)_
90
-
# grunt-purify-css
40
+
In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using [Grunt](http://gruntjs.com/).
0 commit comments