mosaic/rollup.config.mjs

30 lines
915 B
JavaScript
Raw Normal View History

2023-06-06 11:57:40 +00:00
// Import rollup plugins
import { rollupPluginHTML as html } from "@web/rollup-plugin-html";
import {copy} from '@web/rollup-plugin-copy';
import resolve from '@rollup/plugin-node-resolve';
// import * as terser from '@rollup/plugin-terser';
// import * as minifyHTML from 'rollup-plugin-minify-html-literals';
2023-06-06 11:57:40 +00:00
import summary from 'rollup-plugin-summary';
export default {
plugins: [
// Entry point for application build; can specify a glob to build multiple
// HTML files for non-SPA app
html({
input: 'dist/**.html',
2023-06-06 11:57:40 +00:00
}),
// Resolve bare module specifiers to relative paths
resolve(),
// Print bundle summary
summary(),
// Optional: copy any static assets to build directory
copy({
patterns: ['images/**/*', 'manifest.json', 'js/**/*'],
}),
],
output: {
dir: 'build',
},
experimentalCodeSplitting: true,
preserveEntrySignatures: 'strict',
};