cur3n4 / jsp-webpack-plugin

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

Home Page:https://www.npmjs.com/package/jsp-webpack-plugin

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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, '/src/index.jsp'),
            filename: path.join(__dirname, '/dist/index.jsp'),
        })
    ]
};

About

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

https://www.npmjs.com/package/jsp-webpack-plugin

License:Apache License 2.0


Languages

Language:JavaScript 100.0%