ghc

grunt-htmlcssjs-combine

Combine HTML, CSS and JS files together into single HTML

Showing:

Popularity

Downloads/wk

1

Maintenance

No Maintenance Data Available

Package

Dependencies

0

Size (min+gzip)

0.5KB

License

Type Definitions

Tree-Shakeable

No?

Categories

Readme

grunt-htmlcssjs-combine

Combine HTML, CSS and JS files together into single HTML

Installation

npm i grunt-htmlcssjs-combine

or in package.json:

devDependencies: {
  ...
  "grunt-htmlcssjs-combine": "*"
  ...
}

Usage

Given the following configuration

grunt.loadNpmTasks('grunt-htmlcssjs-combine');

htmlcssjs: {
  main: {
    src: ['styles.css', 'scripts.js', 'template.html'],
    dest: 'index.html'
  }
}

If you run

$ grunt htmlcssjs

You'll get in index.html:

<style>
/* content from styles.css */
</style>

<script>
/* content from scripts.js */
</script>

<!-- content from template.html -->

License

MIT License. Copyright (c) 2013 Chute Corp.

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100