Есть такая конфигурация
const path = require('path');
const HtmlWebpackPlugin = require('html-webpack-plugin');
module.exports = {
entry: {
one: [
path.resolve(__dirname, './one.js'),
path.resolve(__dirname, './one-a1.js')
],
two: [
path.resolve(__dirname, './js/two.js')
]
},
output: {
filename: '[name].bundle.js',
},
plugins: [
new HtmlWebpackPlugin({
publicPath: publickAssetsPathTr,
inject: 'body',
chunks: ['one'],
templateContent: '',
filename: path.resolve(__dirname, './test-one.tmpl')
}),
new HtmlWebpackPlugin({
inject: 'body',
chunks: ['two'],
templateContent: '',
filename: path.resolve(__dirname, './test-two.tmpl')
}),
};
Каким образом чанк two записать в шаблон не ссылкой а inline?