Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ecliptic/webpack-blocks-html
DEPRECATED: Merged into webpack-blocks-utils
https://github.com/ecliptic/webpack-blocks-html
html-webpack-plugin webpack webpack-blocks
Last synced: 28 days ago
JSON representation
DEPRECATED: Merged into webpack-blocks-utils
- Host: GitHub
- URL: https://github.com/ecliptic/webpack-blocks-html
- Owner: ecliptic
- License: mit
- Created: 2017-02-13T17:17:51.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2022-12-06T15:32:14.000Z (about 2 years ago)
- Last Synced: 2024-11-01T02:35:48.730Z (about 2 months ago)
- Topics: html-webpack-plugin, webpack, webpack-blocks
- Language: JavaScript
- Homepage: https://github.com/ecliptic/webpack-blocks-utils
- Size: 142 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 11
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# webpack-blocks-html
A [webpack-block](https://github.com/andywer/webpack-blocks) for [html-webpack-plugin](https://github.com/jantimon/html-webpack-plugin).
[![JavaScript Style Guide](https://img.shields.io/badge/code%20style-standard-brightgreen.svg)](http://standardjs.com/)
[![NPM Version](https://img.shields.io/npm/v/webpack-blocks-html.svg)](https://www.npmjs.com/package/webpack-blocks-html)*Version compatibility:*
* webpack-blocks v0._x_ -> webpack-blocks-html [v1._x_](https://github.com/ecliptic/webpack-blocks-copy/tree/master) (@latest)
* webpack-blocks v1._x_ -> DEPRECATED: Merged into [webpack-blocks-utils](https://github.com/ecliptic/webpack-blocks-utils)## Installation
```sh
yarn add --dev webpack-blocks-html
```or
```sh
npm install --save-dev webpack-blocks-html
```## Usage
```js
import {createConfig, entryPoint, setOutput} from '@webpack-blocks/webpack2'
import babel from '@webpack-blocks/babel6'
import html from './src/webpack-block-html'export default createConfig([
entryPoint(['babel-polyfill', './src/Main.js']),
setOutput('./build/bundle.js'),
babel(),
html({template: 'assets/index.html'}),
])
```## Options
See the options list [here](https://github.com/jantimon/html-webpack-plugin#configuration).
Defaults:
* *filename:* 'index.html'
* *template:* 'templates/index.html'
* *showErrors:* false## License
This project is licensed under [MIT](https://github.com/ecliptic/webpack-blocks-html/blob/master/LICENSE).