Socket
Socket
Sign inDemoInstall

@vxna/mini-html-webpack-template

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vxna/mini-html-webpack-template

Minimum viable template for mini-html-webpack-plugin


Version published
Weekly downloads
49K
decreased by-6.98%
Maintainers
1
Weekly downloads
 
Created
Source

@vxna/mini-html-webpack-template

Minimum viable template for mini-html-webpack-plugin

Warning

It does not work with html-webpack-plugin

Usage

webpack.config.js

const MiniHtmlWebpackPlugin = require('mini-html-webpack-plugin')

module.exports = {
  plugins: [
    new MiniHtmlWebpackPlugin({
      context: {
        title: 'sample-app',
        container: 'root',
        minify: false
      },
      template: require('@vxna/mini-html-webpack-template')
    })
  ]
}

Options

NameTypeDefaultDescription
title{String}'sample-app'Generated document title
container{String}undefinedApplication mount point, e.g.: <div id="root"></div>
minify{Boolean}trueNon-configurable & safe HTML minification

License

MIT (http://www.opensource.org/licenses/mit-license.php)

FAQs

Package last updated on 14 Mar 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc