0.0.12 • Published 2 years ago

js-create-includes-webpack-plugin v0.0.12

Weekly downloads
2
License
MIT
Repository
github
Last release
2 years ago

JSCreateIncludesWebpackPlugin

Travis (.org) GitHub search hit counter GitHub code size in bytes

The simple plug-in which allows you to run cordova/webpack app.

Overview

The WebPack plugin for convert HTML script assignment like:

<script src="/bundle.js"></script>

to JS creation of a DOM-element:

<script>
  const bundleScript = document.createElement('script');
  bundleScript.type = 'text/javascript';
  bundleScript.async = true;
  bundleScript.src = 'bundle.js';
  document.body.appendChild(bundleScript);
</script>

Installation

Requirements:
  • webpack
  • html-webpack-plugin
$ npm i js-create-includes-webpack-plugin -D

Usage

Add to you WebPack config file the next:

const JSCreateIncludesWebpackPlugin = require('js-create-includes-webpack-plugin')

// ...

module.exports = {
  plugins: [
    // Place it after HtmlWebpackPlugin
    new JSCreateIncludesWebpackPlugin(),
  ],
}

Credits

Author: Denis Efremov @piterden

Donate

  • BTC 3F275vPSCvYW19MHZqSjw79fEwwU4MbTgV
  • LTC MGMCQB3QAcrSBjU3eGJviqB2J2f5BNVRGr
  • DOGE D5m69FRDGEn3G3xuakvqTxUpGVt6NegKJp
0.0.12

2 years ago

0.0.11

5 years ago

0.0.10

5 years ago

0.0.8

5 years ago

0.0.7

5 years ago

0.0.6

5 years ago

0.0.5

5 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago