webpack-blocks-html
v1.3.1
Published
A webpack-block for html-webpack-plugin
Downloads
24
Readme
webpack-blocks-html
A webpack-block for html-webpack-plugin.
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.