Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/stevemao/grunt-simple-preprocess
Preprocess html, js and css based off environment configuration
https://github.com/stevemao/grunt-simple-preprocess
Last synced: 6 days ago
JSON representation
Preprocess html, js and css based off environment configuration
- Host: GitHub
- URL: https://github.com/stevemao/grunt-simple-preprocess
- Owner: stevemao
- Created: 2015-05-26T01:24:55.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-05-26T01:55:45.000Z (over 9 years ago)
- Last Synced: 2024-11-07T13:54:20.301Z (about 2 months ago)
- Language: JavaScript
- Size: 121 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# grunt-simple-preprocess [![Build Status](https://travis-ci.org/stevemao/grunt-simple-preprocess.svg?branch=master)](https://travis-ci.org/stevemao/grunt-simple-preprocess)
> Preprocess html, js and css based off environment configuration, using [`simple-preprocess`](https://github.com/stevemao/simple-preprocess)
*Issues with the output should be reported on the `simple-preprocess` [issue tracker](https://github.com/stevemao/simple-preprocess/issues).*
## Install
```
$ npm install --save-dev grunt-simple-preprocess
```## Usage
```js
require('load-grunt-tasks')(grunt); // npm install --save-dev load-grunt-tasksgrunt.initConfig({
simplePreprocess: {
target: {
env: 'prod',
src: 'src/index.html',
dest: 'dest/index.html'
}
}
});grunt.registerTask('default', ['simplePreprocess']);
```**NOTE** If the file `dest` is *NOT* specified, `src` is overwritten. Also only one `src` per `dest` is supported. The first file is used if multiple `src` per `dest` is found. See http://gruntjs.com/configuring-tasks#files for more information on `files`
## License
MIT © [Steve Mao](https://github.com/stevemao)