var rules = { basehref: { from: //, to: '' }, angular_pkg: { from: /src=".?node_modules\/@angular/g, to: 'src="https://unpkg.com/@angular' }, script: { from: /.*<\/script>/, to: '' }, link: { from: '//', to: '' }, // Clear script like this: // system_strip_import_app: { from: /