Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

jsp-webpack-plugin

AkpoFlash430Apache-2.01.0.2

This plugin intends for generate *.jsp file (with injected your bundles and chunks)

jsp, webpack, plugin, java, html

readme

Jsp WebPack Plugin

This plugin intends for generate *.jsp file (with injected your bundles and chunks)

Install

npm i --save-dev jsp-webpack-plugin

or

yarn add --dev jsp-webpack-plugin

Usage

webpack.config.js

const path = require('path');
const JspWebpackPlugin = require('jsp-webpack-plugin');

module.exports = {
    entry: path.resolve(__dirname, 'index.js'),
    output: {
        path: path.resolve(__dirname, '/dist'),
        filename: 'bundle.js'
    },
    plugins: [
        new JspWebpackPlugin({
            template: path.join(__dirname, '/index.jsp'),
        })
    ]
};