# grunt-simple-preprocess **Repository Path**: mirrors_stevemao/grunt-simple-preprocess ## Basic Information - **Project Name**: grunt-simple-preprocess - **Description**: Preprocess html, js and css based off environment configuration - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-09-26 - **Last Updated**: 2025-09-28 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## 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-tasks grunt.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)