- Add StyleDetectionEngine with one-layer-deep nested element analysis - Add HTMLPreservationEngine for direct HTML manipulation without lossy conversion - Implement structure-preserving content parsing that maintains element positions - Add multi-property element support for links (href + content), images (src + alt), buttons - Create comprehensive test suite with real DOM element validation - Replace markdown-based system foundation with HTML-first architecture - Preserve all element attributes (classes, IDs, data-*, aria-*) during editing - Generate human-readable style names from detected nested elements - Support template extraction with multiple insertion points for complex elements Foundation complete for Phase 2 style-aware editor interface per CLASSES.md specification.
36 lines
697 B
JavaScript
36 lines
697 B
JavaScript
import { nodeResolve } from '@rollup/plugin-node-resolve';
|
|
import terser from '@rollup/plugin-terser';
|
|
import { execSync } from 'child_process';
|
|
|
|
// No longer needed - insertr.js served via CDN endpoint
|
|
|
|
export default [
|
|
// Development build
|
|
{
|
|
input: 'src/index.js',
|
|
output: {
|
|
file: 'dist/insertr.js',
|
|
format: 'iife',
|
|
name: 'Insertr',
|
|
exports: 'default'
|
|
},
|
|
plugins: [
|
|
nodeResolve()
|
|
]
|
|
},
|
|
// Production build (minified)
|
|
{
|
|
input: 'src/index.js',
|
|
output: {
|
|
file: 'dist/insertr.min.js',
|
|
format: 'iife',
|
|
name: 'Insertr',
|
|
exports: 'default'
|
|
},
|
|
plugins: [
|
|
nodeResolve(),
|
|
terser()
|
|
]
|
|
}
|
|
];
|