rollup-plugin-bundle-inject
Version:
Inject JS or CSS bundle into a template where necessary
20 lines (18 loc) • 364 B
JavaScript
const path = require("path");
const postcss = require("rollup-plugin-postcss");
const bundleInject = require("../dist/index");
module.exports = {
input: "./src/index.js",
output: {
dir: "./public/dist",
format: "cjs",
},
plugins: [
postcss({
extract: true,
}),
bundleInject({
target: "./public/index.html",
}),
],
};