Angular2 template and styles inliner for rollup
I have no time to maintain this plugin anymore. So im looking for a new Maintainer. Feel free to create an issue, when you want to maintain this plugin.
npm install --save-dev rollup-plugin-angular
// rollup.config.js;;;;entry: 'src/main.ts'format: 'iife'dest: 'dist/bundle.js'plugins:// rxjs fix (npm install rxjs-es)
You may need to do some preprocessing on your templates & styles such as minification and/or transpilation.
To do this you can pass a preprocessors object as an option, containing a style and/or template preprocessor.
sourcetype: 'js' //defaults to 'ts'preprocessors:
source - The contents of the style or template's file.
path - The path to the loaded file. Can be useful for checking file extensions for example.
returns the manipulated source as a string.
The following example shows how you can use sass, clean-css (for css minification), and htmlmin.
// rollup.config.js;;;;;;const cssmin = ;const htmlminOpts =caseSensitive: truecollapseWhitespace: trueremoveComments: true;input: 'src/main.ts'output:format: 'umd'file: 'dist/bundle.js'plugins: