webpack-blocks-html

1.3.1 • Public • Published

webpack-blocks-html

A webpack-block for html-webpack-plugin.

JavaScript Style Guide NPM Version

Installation

yarn add --dev webpack-blocks-html

or

npm install --save-dev webpack-blocks-html

Usage

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.

Defaults:

  • filename: 'index.html'
  • template: 'templates/index.html'
  • showErrors: false

License

This project is licensed under MIT.

Package Sidebar

Install

npm i webpack-blocks-html

Weekly Downloads

5

Version

1.3.1

License

MIT

Last publish

Collaborators

  • bkonkle
  • webyak
  • ecliptic-team