@alme/bundle-loader-webpack-plugin

Typescript Alme Webpack Bundle Loader

Usage no npm install needed!

<script type="module">
  import almeBundleLoaderWebpackPlugin from 'https://cdn.skypack.dev/@alme/bundle-loader-webpack-plugin';
</script>

README

Alme Bundle Loader Webpack Plugin

The AlmeBundleLoaderPlugin simplifies creation of the alme bundle loader scripts.

Installation

# npm
npm install @alme/bundle-loader-webpack-plugin

# yarn
yarn add @alme/bundle-loader-webpack-plugin

Basic Usage

// webpack.config.js
const AlmeBundleLoaderPlugin = require('@alme/bundle-loader-webpack-plugin');

module.exports = {
  //...
  plugins: [
      //...
      new AlmeBundleLoaderPlugin(
        {
          scriptManagerPath: './public/alme-script-manager.js',
          bundleLoaderPath: './public/alme-loader.js',
          searchValue: /(?:const bundleFiles = )(\[\])(?:;)/gi,
        }
      ),
  ]
};