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,
}
),
]
};