jsp webpack plugin
1.0.0
Dieses Plugin beabsichtigt, *.jsp -Datei zu generieren (mit injizierten Bündeln und Stücken)
npm i --save-dev jsp-webpack-plugin
oder
yarn add --dev jsp-webpack-plugin
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'),
})
]
};